2017-03-28 16:24:25 +02:00
|
|
|
# Library
|
|
|
|
## Développement
|
2017-03-31 12:04:08 +02:00
|
|
|
|
|
|
|
### Documentations
|
|
|
|
http://www.php-fig.org/psr/psr-4/
|
|
|
|
|
2017-04-03 12:25:40 +02:00
|
|
|
### Phpcs
|
|
|
|
Configurer Phpcs:
|
|
|
|
https://github.com/squizlabs/PHP_CodeSniffer/wiki/Configuration-Options
|
|
|
|
|
|
|
|
Changer le coding standard (PEAR par defaut)
|
|
|
|
```
|
|
|
|
phpcs --config-set default_standard Squiz
|
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
vendor/bin/phpcs --config-set colors 1
|
|
|
|
vendor/bin/phpcs --config-set report_width 120
|
|
|
|
vendor/bin/phpcs --config-set show_progress 1
|
|
|
|
```
|
|
|
|
|
2017-03-28 16:24:25 +02:00
|
|
|
### Tests unitaires
|
|
|
|
Pour lancer les tests unitaires:
|
|
|
|
```
|
|
|
|
vendor/bin/phpunit tests/*
|
|
|
|
```
|