Skip to content

fredericomartini-docker-libraries/php-cs-fixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

docker-php-cs-fixer

Run PHP Mess Detector (php-cs) in Docker container-fixer

Build

Build from Dockerfile:

docker build -t fredericomartini/php-cs-fixer .

Verify build:

docker run --rm -it fredericomartini/php-cs-fixer --version

Usage

  1. Install the fredericomartini/php-cs-fixer container (optional - this step is performed by Docker automatically when running the container):
$ docker pull fredericomartini/php-cs-fixer
  1. Define an bash alias that runs this container whenever php-cs-fixer is invoked on the command line:
$ echo "alias php-cs='docker run --rm -it -v \$(pwd):/app fredericomartini/php-cs-fixer'" >> ~/.bashrc
$ source ~/.bashrc
  1. Run php-cs-fixer as always:
$ php-cs-fixer --version-fixer

About

Docker image for PHP CS Fixer - https://github.com/FriendsOfPhp/PHP-CS-Fixer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published