A NoSql abstraction dataset. Anydataset is an agnostic data source abstraction layer in PHP.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
testsdb
.gitignore
.travis.yml
AwsDynamoDbKeyValue.md
AwsS3KeyValue.md
LICENSE
MongoDB.md
README.md
_config.yml
composer.json
package.json
phpunit.xml.dist

README.md

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