This package is abandoned and no longer maintained. No replacement package was suggested.

0.3.1 2020-02-03 15:37 UTC

This package is auto-updated.

Last update: 2021-03-31 17:58:08 UTC


It uses:


$ composer install
# from some project
# /path/to/proofreader-php/bin/proofreader $folder


By default, this configuration file is used:

  • .php_cs

by PHP CS Fixer.

Sample output

$ ~/code/proofreader-php/bin/proofreader src/
PHP-CS-Fixer consistency check with local project
Loaded config from "/home/giorgio/code/proofreader-php/.php_cs"
Legend: ?-unknown, I-invalid file syntax, file ignored, .-no changes, F-fixed, E-error
Checked all files in 1.792 seconds, 6.000 MB memory used

phpcpd 2.0.4 by Sebastian Bergmann.

0.00% duplicated lines out of 725 total lines of code.

Time: 43 ms, Memory: 4.00MB


Execute proofreader on the src folder of your own project:

docker run -v $(pwd):/code elifesciences/proofreader-php bin/proofreader /code/src

Execute php-cs-fixer on the src folder of your own project (experimental):

touch .php_cs.cache
docker run -v $(pwd):/code -v $(pwd)/.php_cs.cache:/srv/proofreader-php/.php_cs.cache -u $(id -u) elifesciences/proofreader-php vendor/bin/php-cs-fixer fix /code/src

Import proofreader in another project's image:

FROM elifesciences/proofreader-php:latest AS proofreader
USER elife
COPY --from=proofreader --chown=elife:elife /srv/proofreader-php /srv/proofreader-php
RUN ln -s /srv/proofreader-php/bin/proofreader /srv/bin/proofreader