byjg/anydataset-nosql

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

4.0.1 2020-04-02 05:51 UTC

This package is auto-updated.

Last update: 2020-06-15 19:49:56 UTC


README

Opensource ByJG Build Status

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

See more about Anydataset here.

Examples

Install

Just type:

composer require "byjg/anydataset-nosql=4.0.*"

Running Unit tests

MongoDB

The easiest way to run the tests is:

Prepare the environment

npm i
node_modules/.bin/usdocker --refresh
node_modules/.bin/usdocker -v --no-link mongodb up

Run the tests

vendor/bin/phpunit testsdb/MongoDbDriverTest.php

AWS DynamoDb

You need setup your environment with:

  • DYNAMODB_CONNECTION = "dynamodb://access_key:secret_key@region/bucketname"

Once defined:

vendor/bin/phpunit testsdb/AwsDynamoDbDriverTest.php

AWS S3

You need setup your environment with:

  • S3_CONNECTION = "s3://access_key:secret_key@region/bucketname"

Once defined:

vendor/bin/phpunit testsdb/AwsS3DriverTest.php

Cloudflare KV

You need setup your environment with:

  • CLOUDFLAREKV_CONNECTION = "kv://email:authkey@accountid/namespaceid"

Once defined:

vendor/bin/phpunit testsdb/.....php

Open source ByJG