PHP CS-Fixer Container. https://cs.symfony.com/
  • Dockerfile 100%
Find a file
Ludwig Rafelsberger 5f4e10c3fc Improve startup times
Relevant doc: https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.jit

Default is "tracing" or "on", which is not as aggressive as "function"
and has less upfront cost.
2025-12-20 19:36:30 +01:00
conf Improve startup times 2025-12-20 19:36:30 +01:00
Containerfile Modernize build 2025-12-20 19:33:30 +01:00
readme.md Modernize build 2025-12-20 19:33:30 +01: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 \
  --tag code.netztechniker.at/ludwig/php-cs-fixer:$PHP_CS_FIXER_VERSION