PHPackages                             dreamfactory/azure-documentdb-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. dreamfactory/azure-documentdb-php-sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

dreamfactory/azure-documentdb-php-sdk
=====================================

A simple PHP SDK for Microsoft Azure DocumentDB.

0.2.1(8y ago)0192.4k—5.5%2[1 PRs](https://github.com/dreamfactorysoftware/azure-documentdb-php-sdk/pulls)1Apache-2.0PHPPHP &gt;=5.6

Since Nov 2Pushed 2y ago4 watchersCompare

[ Source](https://github.com/dreamfactorysoftware/azure-documentdb-php-sdk)[ Packagist](https://packagist.org/packages/dreamfactory/azure-documentdb-php-sdk)[ Docs](https://www.dreamfactory.com/)[ RSS](/packages/dreamfactory-azure-documentdb-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (1)

azure-documentdb-php-sdk
========================

[](#azure-documentdb-php-sdk)

PHP SDK for Azure DocumentDB

Usage
-----

[](#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
----

[](#note)

Only Database, Collection, and Document operations are supported now.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~122 days

Total

3

Last Release

3239d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6d25412f9819bf51eaf3cb005d1f1239f2b81081c51018240d132b98e6ad2b8?d=identicon)[dreamfactory](/maintainers/dreamfactory)

---

Top Contributors

[![df-arif](https://avatars.githubusercontent.com/u/10451617?v=4)](https://github.com/df-arif "df-arif (18 commits)")

---

Tags

restdatabaseazurenosqldocumentdb

### Embed Badge

![Health badge](/badges/dreamfactory-azure-documentdb-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/dreamfactory-azure-documentdb-php-sdk/health.svg)](https://phpackages.com/packages/dreamfactory-azure-documentdb-php-sdk)
```

###  Alternatives

[rakibtg/sleekdb

SleekDB - A NoSQL Database made using PHP

984116.7k19](/packages/rakibtg-sleekdb)[nimbly/activeresource

Use a RESTful resource based API like a database

1043.5k](/packages/nimbly-activeresource)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
