byjg/anydataset-nosql

A NoSql abstraction dataset. Anydataset is an agnostic data source abstraction layer in PHP.

Fund package maintenance!
byjg

5.0.1 2024-12-17 15:58 UTC

This package is auto-updated.

Last update: 2025-03-17 16:26:05 UTC


README

Build Status Opensource ByJG GitHub source GitHub license GitHub release

Anydataset NoSQL standardize the access to non-relational databases/repositories and treat them as Key/Value. The implementation can work with:

  • S3-Like Storage
  • MongoDB
  • Cloudflare KV
  • DynamoDB

Anydataset is an agnostic data source abstraction layer in PHP. See more about Anydataset here.

Features

  • Access as Key/Value repositories different datasource
  • Allow put and get data
  • Simplified way to connect to the datasources

Connection Based on URI

The connection string for databases is based on URL.

See below the current implemented drivers:

Datasource Connection String
MongoDB mongodb://username:password@hostname:port/database
S3 s3://accesskey:secretkey@region/bucket?params
Cloudflare KV kv://username:password@accountid/namespaceid
AWS DynamoDB dynamodb://accesskey:secretkey@hostname/tablename?params

Topics

Install

Just type:

composer require "byjg/anydataset-nosql"

Dependencies

flowchart TD
   byjg/anydataset-nosql --> ext-curl
   byjg/anydataset-nosql --> aws/aws-sdk-php
   byjg/anydataset-nosql --> byjg/anydataset
   byjg/anydataset-nosql --> byjg/anydataset-array
   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