Docker image containing common tools used in php development, PHP7 and PHP5 versions.
- Composer + Prestissimo plugin
- Phing
- PHPUnit + DBUnit
- Codeception
- PHP Copy-Paste Detector
- PHP LOC
- PHP Mess Detector
- PHP CodeSniffer + Symfony2 Code Standard
- PHP Metrics
- Security Checker
- PHP Dead Code Detector
- PHP Stan (PHP7 only)
- Phan (PHP7 only)
- PHP CS Fixer
- Box2
- PhpDocumentor
Install php-tool-run
and php5-tool-run
to /usr/local/bin
./build.sh
./install.sh
Install php-tool-run
and php5-tool-run
to /my/special/dir/in/path
./build.sh
./install.sh -d /my/special/dir/in/path
Download the Dockerfile you need (PHP7 and PHP5 versions included) and execute:
docker build . -t php-tools
docker build ./php5 -t php-tools:php5
Copy php-tool-run
and php5-tool-run
file to your PATH.
php-tool-run <tool>
php-tool-run composer update
# Run php-cs-fixer in ./src
php-tool-run php-cs-fixer fix src
# Runs composer update and then change the ownerships of vendor
# files to the current user and group (docker will give ownership to root)
php-tool-run composer update --dpt-owner
# Runs composer update and then change the ownerships of vendor
# files to the given user and group (docker will give ownership to root)
php-tool-run composer update --dpt-owner --dpt-user myuser --dpt-group mygroup
# Runs php-cs-fixer in the given directory
php-tool-run php-cs-fixer --dpt-dir /my/path