dejwcake / php-code-style
Code style for php applications and libraries based on Slevomat Rules.
Installs: 72
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/dejwcake/php-code-style
Requires
- php: ^8.0 || ^8.1 || ^8.2 || ^8.3 || ^8.4 || ^8.5
- slevomat/coding-standard: 8.25.1
README
This repository contains rules for coding standard for PHP projects.
Usage
Create .phpcs.xml file in your project and extend base.phpcs.xml. Base configuration contains base rules which can be extended in your project.
Development
Run Composer in Docker (no local PHP/Composer needed):
docker run --rm -it \ -u "$(id -u):$(id -g)" \ -v "$PWD":/app \ -w /app \ composer:2 update
Notes:
- For local development only; in CI/CD prefer reproducible installs (composer install) rather than updates.
- If your local PHP version differs from the target platform, you may temporarily use
--ignore-platform-reqs, but avoid committing such changes without verifying compatibility.