Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Docker image to run PHP CS FIXER in your workspace

Official Github repository and documentation

Minimal install and php-cs-fixer execution

docker run ypereirareis/php-cs-fixer

By default this run will execute php-cs-fixer --help

Add an alias into your ~/.bashrc OR ~/.zshrc OR ...

Open your matching file and paste this code:

php-cs-fixer () {
  docker run -it --rm --net host -v `pwd`:/app  ypereirareis/php-cs-fixer fix --level=psr2 --verbose $@

Of course you can modify the function name or php-cs-fixer options

Fig OR docker compose

Feel free to add the correct config into your fig.yml OR docker-compose.yml to run php-cs-fixer whenever you want.

Docker Pull Command