Download the PHP package dreamfactory/azure-documentdb-php-sdk without Composer
On this page you can find all versions of the php package dreamfactory/azure-documentdb-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dreamfactory/azure-documentdb-php-sdk
More information about dreamfactory/azure-documentdb-php-sdk
Files in dreamfactory/azure-documentdb-php-sdk
Download dreamfactory/azure-documentdb-php-sdk
More information about dreamfactory/azure-documentdb-php-sdk
Files in dreamfactory/azure-documentdb-php-sdk
Vendor dreamfactory
Package azure-documentdb-php-sdk
Short Description A simple PHP SDK for Microsoft Azure DocumentDB.
License Apache-2.0
Homepage https://www.dreamfactory.com/
Package azure-documentdb-php-sdk
Short Description A simple PHP SDK for Microsoft Azure DocumentDB.
License Apache-2.0
Homepage https://www.dreamfactory.com/
Please rate this library. Is it a good library?
Informations about the package azure-documentdb-php-sdk
azure-documentdb-php-sdk
PHP SDK for Azure DocumentDB
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.
All versions of azure-documentdb-php-sdk with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
ext-curl Version *
ext-curl Version *
The package dreamfactory/azure-documentdb-php-sdk contains the following files
Loading the files please wait ....