Update README

This commit is contained in:
Vincent Letourneau
2017-08-08 11:53:17 +02:00
parent 63cb412dfa
commit ebe6b536dc

View File

@@ -258,19 +258,19 @@ sudo docker run --rm -v $(pwd)/web/app:/app composer update
### Generating PHP API documentation
```sh
sudo docker-compose exec php ./app/vendor/bin/apigen generate app/src --destination app/doc
sudo docker-compose exec -T php ./app/vendor/bin/apigen generate app/src --destination ./app/doc
```
### Testing PHP application with PHPUnit
```sh
sudo docker-compose exec php ./app/vendor/bin/phpunit --colors=always --configuration app/
sudo docker-compose exec -T php ./app/vendor/bin/phpunit --colors=always --configuration ./app/
```
### Checking the standard code with [PSR2](http://www.php-fig.org/psr/psr-2/)
```sh
sudo docker-compose exec php ./app/vendor/bin/phpcs --standard=PSR2 app/src
sudo docker-compose exec -T php ./app/vendor/bin/phpcs --standard=PSR2 ./app/src
```
### Checking installed PHP extensions