https://github.com/texthtml/docker-phpcs
docker image for PHP_CodeSniffer
https://github.com/texthtml/docker-phpcs
docker-image lint linter php php-cs-fixer sniffer
Last synced: 3 months ago
JSON representation
docker image for PHP_CodeSniffer
- Host: GitHub
- URL: https://github.com/texthtml/docker-phpcs
- Owner: texthtml
- License: agpl-3.0
- Created: 2015-10-15T20:01:55.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2026-03-05T00:00:29.000Z (3 months ago)
- Last Synced: 2026-03-05T04:57:56.364Z (3 months ago)
- Topics: docker-image, lint, linter, php, php-cs-fixer, sniffer
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/texthtml/phpcs/
- Size: 39.1 KB
- Stars: 5
- Watchers: 1
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHPCS
This is a docker image for [PHP_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer)
## Usage
Detect code standard violations
```
docker run -v /path/to/php/files/:/scripts/ texthtml/phpcs phpcs --standard=PSR2 /scripts/
```
and fix them
```
docker run -v /path/to/php/files/:/scripts/ texthtml/phpcs phpcbf --standard=PSR2 /scripts/
```