2017 © Pedro Peláez
 

library azure-documentdb-php-sdk

A simple PHP SDK for Microsoft Azure DocumentDB.

image

dreamfactory/azure-documentdb-php-sdk

A simple PHP SDK for Microsoft Azure DocumentDB.

  • Wednesday, July 5, 2017
  • by dreamfactory
  • Repository
  • 7 Watchers
  • 1 Stars
  • 6,211 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

azure-documentdb-php-sdk

PHP SDK for Azure DocumentDB, (*1)

Usage

$client = new DreamFactory\DocumentDb\Client('azure_host_uri', 'azure_document_db_key');

$db = new \DreamFactory\DocumentDb\Resources\Database($client);
$db->getAll()
$db->get('db-id');
$db->create(['id'=>'my_db']);
$db->delete('db-id');

//To set additional optional headers
$db->setHeaders(['Content-Type: application/json']);

$coll = new \DreamFactory\DocumentDb\Resources\Collection($client, 'db-id');
$coll->getAll();
$coll->get('coll-id');
$coll->create(['id'=>'1']);
$coll->replace(['id'=>'1', 'indexingPolicy'=>[...]], 'coll-id');
$coll->delete('coll-id');

//To set additional optional headers
$coll->setHeaders(['Content-Type: application/json']);

$doc = new \DreamFactory\DocumentDb\Resources\Document($client, 'db-id', 'coll-id');
$doc->getAll();
$doc->get('doc-id');
$doc->create(['id'=>'1', 'name'=>'foobar']);
$doc->replace(['id'=>'1', 'name'=>'foobar-replaced'], 'doc-1');
$doc->query('SELECT * FROM coll WHERE coll.name = @name', [['name' => '@name', 'value' => 'foobar']]);
$doc->delete('doc-id');

//To set additional optional headers
$doc->setHeaders(['Content-Type: application/json']);

Note

Only Database, Collection, and Document operations are supported now., (*2)

The Versions

05/07 2017

dev-develop

dev-develop https://www.dreamfactory.com/

A simple PHP SDK for Microsoft Azure DocumentDB.

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6
  • ext-curl *

 

by Arif Islam

database rest nosql azure documentdb

05/07 2017

dev-master

9999999-dev https://www.dreamfactory.com/

A simple PHP SDK for Microsoft Azure DocumentDB.

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6
  • ext-curl *

 

by Arif Islam

database rest nosql azure documentdb

05/07 2017

0.2.1

0.2.1.0 https://www.dreamfactory.com/

A simple PHP SDK for Microsoft Azure DocumentDB.

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6
  • ext-curl *

 

by Arif Islam

database rest nosql azure documentdb

12/06 2017

0.2.0

0.2.0.0 https://www.dreamfactory.com/

A simple PHP SDK for Microsoft Azure DocumentDB.

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6
  • ext-curl *

 

by Arif Islam

database rest nosql azure documentdb

02/11 2016

0.1.0

0.1.0.0 https://www.dreamfactory.com/

A simple PHP SDK for Microsoft Azure DocumentDB.

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6
  • ext-curl *

 

by Arif Islam

database rest nosql azure documentdb