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

v2.2.1 2025-12-11 19:25 UTC

This package is auto-updated.

Last update: 2025-12-11 19:26:38 UTC


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.