AnyDataset-NoSql

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

Open source ByJG