This is a library and an Object Document Mapper to use with AWS DynamoDB in a more convenient way.
To be added soon...
- In order to build a dev image, please, run:
docker-compose build
- Then run to install dependencies:
docker-compose run --no-deps dynamodb-odm composer install
This package uses phpspec for running unit tests.
Run them using the following way:
docker-compose run --no-deps dynamodb-odm vendor/bin/phpspec run
One can use environment variables in the .env.local
file to be able to debug the library. For this just Copy file .env.local.sample into .env.local and set up the variable according to your OS.
And then run the tests with:
docker-compose --env-file ./.env.local run --no-deps dynamodb-odm vendor/bin/phpspec run
This package uses behat for running functional tests.
Then just run the tests:
docker-compose run dynamodb-odm vendor/bin/behat -c behat.yml --stop-on-failure
You need to check if the code style is OK by running:
docker-compose run --no-deps dynamodb-odm vendor/bin/phpcs --basepath=/application/src --standard=PSR2 src