You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.rst
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,22 @@ the ``tools/php-cs-fixer`` directory:
39
39
40
40
For more details and other installation methods, see `installation instructions <./doc/installation.rst>`__.
41
41
42
+
Run with Docker
43
+
~~~~~~~~~~~~~~~
44
+
45
+
PHP CS Fixer can be run in a Docker container.
46
+
47
+
You can use pre-built Docker images to run ``php-cs-fixer``.
48
+
49
+
.. code:: console
50
+
docker run -v $(pwd):/code ghcr.io/php-cs-fixer/php-cs-fixer:${FIXER_VERSION:-3-php8.3} fix src
51
+
52
+
``$FIXER_VERSION`` used in example above is an identifier of a release you want to use, which is based on Fixer and PHP versions combined. There are different tags for each Fixer's SemVer level and PHP version with syntax ``<php-cs-fixer-version>-php<php-version>``. For example:
0 commit comments