jrdnrc / docker-php-cs-fixer

Docker image for PHP Coding Standards Fixer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

license Build Status

Supported tags and respective Dockerfile links

What is PHP Coding Standards Fixer?

The PHP Coding Standards Fixer tool fixes most issues in your code when you want to follow the PHP coding standards as defined in the PSR-1 and PSR-2 documents and many more.

http://cs.sensiolabs.org/

How to use this image

Basic usage using current user.

docker run --rm \
    --user $(id -u):$(id -g) \
    --volume /local/path:/project \
    herloct/php-cs-fixer[:tag] [<options>]

For example, to fix src directory to PSR1 and PSR2 standard.

docker run --rm \
    --user $(id -u):$(id -g) \
    --volume /local/path:/project \
    herloct/php-cs-fixer fix src

Volumes

  • /project: Your PHP project directory.

About

Docker image for PHP Coding Standards Fixer.

License:MIT License


Languages

Language:PHP 100.0%