Container with tools required to develop php and check code you write. Contains:
- phpstan
- phpmd
- phpcs
- phpcpd
docker build -t phptools .
docker run --rm -it -u ${UID} -v ${PWD}:/app -w /app phptools all
docker pull achertovsky/phptools
- all (will launch all tools one by one)
- phpstan
- phpcs
- phpmd
- phpcpd
-m
will check files that is modified/added according togit
-p test.php
will check provided file only
You can create your own
https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file