Sign inSign up

shyim/php-cs-fixer

By shyim

Updated about 2 years ago

PHP-CS-Fixer Docker image based on Ubuntu Chisel

Image
0

4.7K

shyim/php-cs-fixer repository overview

Small PHP-CS-Fixer Docker image

This image is using Ubuntu Chisel to create a very small PHP-CS-Fixer Docker image and using still glibc, to be used in CI/CD pipelines.

  • Official PHP-CS-Fixer image is 100MB and uses Alpine Linux (is musl and does sometimes work different than your regular production server / local machine)
  • This image is 65MB and uses regular Ubuntu packages (is glibc and works the same as your regular production server / local machine)

Usage

# or alternative use ghcr.io/shyim/php-cs-fixer:latest
docker run --rm -v (pwd):(pwd) -w (pwd) shyim/php-cs-fixer:latest --rules @PER-CS2.0,@PER-CS2.0:risky --allow-risky=yes .

If you don't want to pass the as arguments, you can create your regular .php-cs-fixer.php file and PHP-CS-Fixer will pick it up as usual.

Tag summary

Content type

Image

Digest

sha256:684c280a0

Size

13.6 MB

Last updated

about 2 years ago

docker pull shyim/php-cs-fixer