PHPackages                             dejwcake/php-code-style - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dejwcake/php-code-style

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dejwcake/php-code-style
=======================

Code style for php applications and libraries based on Slevomat Rules.

v2.3.0(2w ago)0102MITPHP ^8.0 || ^8.1 || ^8.2 || ^8.3 || ^8.4 || ^8.5

Since Oct 28Pushed 2w ago1 watchersCompare

[ Source](https://github.com/dejwCake/php-code-style)[ Packagist](https://packagist.org/packages/dejwcake/php-code-style)[ RSS](/packages/dejwcake-php-code-style/feed)WikiDiscussions main Synced today

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

PHP coding standard
===================

[](#php-coding-standard)

This repository contains rules for coding standard for PHP projects.

Usage
-----

[](#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
-----------

[](#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.

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance96

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~241 days

Recently: every ~283 days

Total

8

Last Release

20d ago

Major Versions

v1.0.0 → v2.0.02023-05-06

PHP version history (4 changes)v1.0.0PHP ^8.0

v2.0.0PHP ^8.0 || ^8.1 || ^8.2

v2.1.0PHP ^8.0 || ^8.1 || ^8.2 || ^8.3 || ^8.4

v2.2.0PHP ^8.0 || ^8.1 || ^8.2 || ^8.3 || ^8.4 || ^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/7587c47435caa968be9a652630c6c0c91abacb43dfa001b02cbe5b892672cd7e?d=identicon)[dejwCake](/maintainers/dejwCake)

---

Top Contributors

[![dejwCake](https://avatars.githubusercontent.com/u/22255647?v=4)](https://github.com/dejwCake "dejwCake (2 commits)")

### Embed Badge

![Health badge](/badges/dejwcake-php-code-style/health.svg)

```
[![Health](https://phpackages.com/badges/dejwcake-php-code-style/health.svg)](https://phpackages.com/packages/dejwcake-php-code-style)
```

###  Alternatives

[worksome/coding-style

Worksomes coding style

49814.9k66](/packages/worksome-coding-style)[nette/coding-standard

41937.1k19](/packages/nette-coding-standard)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20280.7k20](/packages/shopsys-coding-standards)[almacareer/coding-standard

Coding standard used in Alma Career projects

1739.1k1](/packages/almacareer-coding-standard)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
