PHP CS-Fixer Container. https://cs.symfony.com/
  • Dockerfile 100%
Find a file
2026-06-08 11:40:56 +02:00
conf Improve startup times 2026-06-08 11:37:23 +02:00
Containerfile Label the image 2026-06-08 11:40:56 +02:00
readme.md Label the image 2026-06-08 11:40:56 +02:00

PHP Coding Standards Fixer container image

Container image containing php and PHP Coding Standards Fixer.

Intended image contents

  • php
  • php-cs-fixer

Run

podman container run \
    --rm \
    --interactive --tty \
    --volume=.:/src \
    code.netztechniker.at/ludwig/php-cs-fixer:latest \
        fix \
        --config /path/to/php-cs-fixer-config.php

# or the short variant
podman run --rm -it -v .:/src code.netztechniker.at/ludwig/php-cs-fixer:latest fix --config /path/to/php-cs-fixer-config.php

Build

PHP_VERSION=x.y \
PHP_CS_FIXER_VERSION=x.y.z \
podman image build . \
  --pull \
  --build-arg PHP_VERSION=$PHP_VERSION \
  --build-arg PHP_CS_FIXER_VERSION=$PHP_CS_FIXER_VERSION \
  --annotation=org.opencontainers.image.revision=$(git rev-parse HEAD) \
  --tag code.netztechniker.at/ludwig/php-cs-fixer:$PHP_CS_FIXER_VERSION