This is a very simple example application with two endpoints, where it is simulated the creation of a project that has a name attribute and the listing of all registered projects.
Built with:
- Docker
- PHP 7.3
- Zend expressive
- Eloquent ORM
- Swagger-PHP
Start your project with composer:
$ cd docker
$ docker-compose up -d
After build image and run container with docker composer
$ composer install
$ composer run --timeout=0 serve
composer install
- Install all dependencies of the projectcomposer check
- Run the task that to validate PSR-2 and testscomposer cs-check
- Validate the PSR-2 code indentcomposer fix
- Fix code indent to the PSR-2composer serve
- Run built-in servercomposer test
- Run testscomposer test-coverage
- Run the code coverage reportcomposer docs
- Generate api documention based on OpenAPI with Swagger-PHP