Download the PHP package byjg/anydataset-nosql without Composer
On this page you can find all versions of the php package byjg/anydataset-nosql. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download byjg/anydataset-nosql
More information about byjg/anydataset-nosql
Files in byjg/anydataset-nosql
Package anydataset-nosql
Short Description A NoSql abstraction dataset. Anydataset is an agnostic data source abstraction layer in PHP.
License MIT
Informations about the package anydataset-nosql
AnyDataset-NoSql
Anydataset NoSQL standardize the access to non-relational databases/repositories and treat them as Key/Value. The implementation can work with:
- MongoDB
- Cloudflare KV
- S3
- 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 |
Cloudflare KV | kv://username:password@accountid/namespaceid |
S3 | s3://accesskey:secretkey@region/bucket?params |
AWS DynamoDB | dynamodb://accesskey:secretkey@hostname/tablename?params |
Examples
Check implementation examples on https://opensource.byjg.com/php/anydataset-nosql
Install
Just type:
Running Unit tests
Setup MongoDB for the unit test
Set the environment variable:
- MONGODB_CONNECTION = "mongodb://127.0.0.1/test"
Setup AWS DynamoDb for the unit test
Set the environment variable:
- DYNAMODB_CONNECTION = "dynamodb://accesskey:secretkey@region/tablename"
Setup AWS S3 for the unit test
Set the environment variable:
- S3_CONNECTION = "s3://accesskey:secretkey@region/bucketname"
Cloudflare KV
Set the environment variable:
- CLOUDFLAREKV_CONNECTION = "kv://email:authkey@accountid/namespaceid"
Dependencies
All versions of anydataset-nosql with dependencies
ext-curl Version *
aws/aws-sdk-php Version 3.*
byjg/anydataset Version 4.9.*
byjg/anydataset-array Version 4.9.*
byjg/serializer Version 4.9.*
byjg/webrequest Version 4.9.*
ext-json Version *