Framework independent PHP REST models with schema validation and multiple database engine support.
fathomminds/php-rest-models is a Laravel package for framework independent php rest models with schema validation and multiple database engine support..
It currently has 2 GitHub stars and 908 downloads on Packagist (latest version 1.5.1).
Install it with composer require fathomminds/php-rest-models.
Discover more Laravel packages by fathomminds
or browse all Laravel packages to compare alternatives.
Last updated
Framework independent PHP REST models with schema validation and multiple database engine support.
IMPORTANT!
Clusterpoint support is discontinued. Currently only the MongoDB support is actively developed and supported. DynamoDB and Clusterpoint codes are deprecated and will be removed.
~~Todo Application: REPOURL~~
composer require fathomminds/php-rest-models
You must install the Database Engine specific packages in your project. (Left out from dependencies intentionally to allow installing only the required one.)
~~If you use Clusterpoint: composer require clusterpoint/php-client-api-v4~~
~~If you use DynamoDb: composer require aws/aws-sdk-php~~
If you use MongoDB: composer require mongodb/mongodb
Clone the repository and install dependencies:
composer install
Run unit tests:
vendor/bin/phpunit
Test coverage report is logged to folder: log
Run integration tests:
vendor/bin/phpunit --configuration phpunit-integration-test.xml
Integration tests will interact with real databases. You need to follow the configuration steps to be able to run these tests. The tests use the example FooSchema class for both databases. Please make sure the required objects (tables and indexes) are created before executing integration tests.
Licensed under the MIT license. See LICENSE