ypereirareis / docker-php-cs-fixer

A docker image to run php-cs-fixer quickly and easily in your workspace

Home Page:https://registry.hub.docker.com/u/ypereirareis/php-cs-fixer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker image to run PHP CS FIXER in your workspace

Official Github repository and documentation

https://github.com/FriendsOfPHP/PHP-CS-Fixer http://cs.sensiolabs.org/

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.

About

A docker image to run php-cs-fixer quickly and easily in your workspace

https://registry.hub.docker.com/u/ypereirareis/php-cs-fixer/