PHPackages                             byjg/anydataset-nosql - 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. [Database &amp; ORM](/categories/database)
4. /
5. byjg/anydataset-nosql

ActiveLibrary[Database &amp; ORM](/categories/database)

byjg/anydataset-nosql
=====================

Anydataset NoSQL standardizes the access to non-relational databases/repositories and provides a consistent interface for both NoSQL document databases and Key/Value stores.

6.0.0(7mo ago)79.6k↓29.5%2MITPHPPHP &gt;=8.3 &lt;8.6CI failing

Since Nov 24Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/byjg/php-anydataset-nosql)[ Packagist](https://packagist.org/packages/byjg/anydataset-nosql)[ GitHub Sponsors](https://github.com/byjg)[ RSS](/packages/byjg-anydataset-nosql/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (7)Versions (14)Used By (0)

   sidebar\_key anydataset-nosql   tags    php

 anydataset

 databases

    NoSQL Database Abstraction
==========================

[](#nosql-database-abstraction)

Anydataset NoSQL standardizes the access to non-relational databases/repositories and provides a consistent interface for both NoSQL document databases and Key/Value stores. The implementation supports:

[![Sponsor](https://camo.githubusercontent.com/fab14b7f7f475072ada0473f193d6f322561fd4a2958e0cc89910d053347cf27/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d2532336561346161613f6c6f676f3d67697468756273706f6e736f7273266c6f676f436f6c6f723d7768697465266c6162656c436f6c6f723d306431313137)](https://github.com/sponsors/byjg)[![Build Status](https://github.com/byjg/php-anydataset-nosql/actions/workflows/phpunit.yml/badge.svg?branch=master)](https://github.com/byjg/php-anydataset-nosql/actions/workflows/phpunit.yml)[![Opensource ByJG](https://camo.githubusercontent.com/425c1bbccc0f292bf4d20569ae74a6b2e384fd648f1af8911bc61de9a8dcfc0b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6f70656e736f757263652d62796a672d737563636573732e737667)](http://opensource.byjg.com)[![GitHub source](https://camo.githubusercontent.com/88e61eb211719144efdd570290a0456b6e13099c2df8d973f1bb43fe33bf0039/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4769746875622d736f757263652d696e666f726d6174696f6e616c3f6c6f676f3d676974687562)](https://github.com/byjg/php-anydataset-nosql/)[![GitHub license](https://camo.githubusercontent.com/393d4ac1ee49ee17b434afabe6d4b9e52cb6bd4b8ce2dcf1ea499fc482f84caa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f62796a672f7068702d616e79646174617365742d6e6f73716c2e737667)](https://opensource.byjg.com/opensource/licensing.html)[![GitHub release](https://camo.githubusercontent.com/44c31c9fa8809bb7dfa22c687cfde7e3e13e5767a4cfbb04ef3e12891ac7f5e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f62796a672f7068702d616e79646174617365742d6e6f73716c2e737667)](https://github.com/byjg/php-anydataset-nosql/releases/)

- MongoDB (document-based)
- AWS DynamoDB (key/value)
- S3-Like Storage (key/value)
- Cloudflare KV (key/value)

Anydataset is an agnostic data source abstraction layer in PHP. See more about Anydataset [here](https://opensource.byjg.com/php/anydataset).

Features
--------

[](#features)

- Access both document-based and key/value repositories with consistent interfaces
- NoSQL document-based databases accessed through `NoSqlInterface`
- Key/Value stores accessed through `KeyValueInterface`
- Unified connection string format based on URIs
- Built-in caching capabilities with PSR-16 compatibility
- Type-safe DynamoDB attribute definitions using enums

Connection Based on URI
-----------------------

[](#connection-based-on-uri)

The connection string for databases is based on URL.

See below the current implemented drivers:

DatasourceConnection String[MongoDB](docs/MongoDB.md)mongodb://username:password@hostname:port/database[S3](docs/AwsS3KeyValue.md)s3://accesskey:secretkey@region/bucket?params[Cloudflare KV](docs/CloudFlareKV.md)kv://username:password@accountid/namespaceid[AWS DynamoDB](docs/AwsDynamoDbKeyValue.md)dynamodb://accesskey:secretkey@hostname/tablename?paramsDocumentation
-------------

[](#documentation)

### NoSQL Drivers

[](#nosql-drivers)

- [MongoDB](docs/MongoDB.md) - Document-based NoSQL database

### Key/Value Drivers

[](#keyvalue-drivers)

- [AWS DynamoDB](docs/AwsDynamoDbKeyValue.md) - Key/Value store with type-safe attribute definitions
- [AWS S3](docs/AwsS3KeyValue.md) - Object storage as Key/Value store
- [Cloudflare KV](docs/CloudFlareKV.md) - Cloudflare Workers KV storage

### Additional Features

[](#additional-features)

- [Cache Store](docs/cache.md) - PSR-16 compatible cache layer for Key/Value stores
- [Running Tests](docs/tests.md) - How to run the test suite

Install
-------

[](#install)

Just type:

```
composer require "byjg/anydataset-nosql"
```

Dependencies
------------

[](#dependencies)

 ```
flowchart TD
   byjg/anydataset-nosql --> ext-curl
   byjg/anydataset-nosql --> aws/aws-sdk-php
   byjg/anydataset-nosql --> byjg/anydataset
   byjg/anydataset-nosql --> byjg/serializer
   byjg/anydataset-nosql --> byjg/webrequest
   byjg/anydataset-nosql --> byjg/cache-engine
   byjg/anydataset-nosql --> ext-json
```

      Loading ---

[Open source ByJG](http://opensource.byjg.com)

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance72

Regular maintenance activity

Popularity31

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 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 ~213 days

Recently: every ~98 days

Total

13

Last Release

222d ago

Major Versions

4.9.1 → 5.0.02024-10-29

5.0.x-dev → 6.0.02025-11-24

PHP version history (4 changes)4.0.0PHP &gt;=5.6.0

4.9.0PHP &gt;=7.4

5.0.0PHP &gt;=8.1 &lt;8.4

6.0.0PHP &gt;=8.3 &lt;8.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/981924?v=4)[Joao Gilberto Magalhaes](/maintainers/byjg)[@byjg](https://github.com/byjg)

---

Top Contributors

[![byjg](https://avatars.githubusercontent.com/u/981924?v=4)](https://github.com/byjg "byjg (107 commits)")

---

Tags

anydatasetaws-dynamodbaws-s3cloudflare-kvdynamodbmongodbnosqlnosql-anydatasetphps3

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/byjg-anydataset-nosql/health.svg)

```
[![Health](https://phpackages.com/badges/byjg-anydataset-nosql/health.svg)](https://phpackages.com/packages/byjg-anydataset-nosql)
```

###  Alternatives

[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

10.2k3.5k](/packages/leantime-leantime)[baopham/dynamodb

Eloquent syntax for DynamoDB

4986.0M6](/packages/baopham-dynamodb)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)[keboola/storage-api-client

Keboola Storage API PHP Client

10405.9k40](/packages/keboola-storage-api-client)

PHPackages © 2026

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