Sign inSign up

ninobysa/php-cs-fixer

By ninobysa

•Updated over 4 years ago
Archived

Docker image for PHP Code Standard Fixer

Image
1

1.1K

ninobysa/php-cs-fixer repository overview

⁠docker-php-cs-fixer

Docker image for PHP Code Standard Fixer⁠.

⁠Usage examples

⁠Gitlab CI
# .gitlab-ci.yml
stages:
  - test

job:test:lint:
  stage: test
  image: ninobysa/php-cs-fixer
  script:
    - php-cs-fixer fix --dry-run -vvv --diff ./src
⁠Local usage
docker run --rm -v $(pwd):/app ninobysa/php-cs-fixer fix ./src
⁠PHPStorm

In the settings search for "PHP CS Fixer" under "Quality Tools" and add a "configuration" :

  • Click "..." then "+" and "..." again.
  • Click "+" & select "From Docker".
  • Set ninobysa/php-cs-fixer as "Image name" (you can use a specific version, for example: ninobysa/php-cs-fixer:v3.3.1-php7.4)
  • Click "Ok", wait for the installation check and click "Ok" on the "Cli Interpreters" window.
  • Select the newly added interpreter
  • Set php-cs-fixer as "PHP CS Fixer path" & you're done!

You can find these instructions as a video here⁠.

Tag summary

Content type

Image

Digest

sha256:552532792…

Size

31.5 MB

Last updated

over 4 years ago

docker pull ninobysa/php-cs-fixer