Sign inSign up

ypereirareis/php-cs-fixer

By ypereirareis

•Updated almost 11 years ago

Image
0

1.3K

ypereirareis/php-cs-fixer repository overview

⁠Docker image to run PHP CS FIXER in your workspace

⁠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.

Tag summary

Content type

Image

Digest

sha256:08701ac90…

Size

95.4 MB

Last updated

almost 11 years ago

docker pull ypereirareis/php-cs-fixer