PHPackages                             kleinweb/php-coding-standards - 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. kleinweb/php-coding-standards

ActivePhpcodesniffer-standard[Utility &amp; Helpers](/categories/utility)

kleinweb/php-coding-standards
=============================

PHP coding standards for Klein College of Media and Communication

0.8.0(5mo ago)23.4k↓50%[1 issues](https://github.com/kleinweb/php-coding-standards/issues)[1 PRs](https://github.com/kleinweb/php-coding-standards/pulls)3GPL-3.0-or-laterJustPHP &gt;=8.1

Since Mar 11Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/kleinweb/php-coding-standards)[ Packagist](https://packagist.org/packages/kleinweb/php-coding-standards)[ RSS](/packages/kleinweb-php-coding-standards/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (7)Versions (18)Used By (3)

PHP Coding Standards for the Klein College of Media and Communication
=====================================================================

[](#php-coding-standards-for-the-klein-college-of-media-and-communication)

Strict enough for idealists, relaxed enough for realists.

Goals and Non-Goals
-------------------

[](#goals-and-non-goals)

- Clear separation of tooling domains to prevent conflicts
- Prefer PHP Framework Interop Group (PHP-FIG) standards where feasible
- Encourage WordPress-specific best practices while guarding against reactionary norms
- No support for unsupported PHP versions (obviously, right?!)
- Guard against footguns → minimize wake-up calls

Style: PHP-CS-Fixer (`.php-cs-fixer.dist.php`)
----------------------------------------------

[](#style-php-cs-fixer-php-cs-fixerdistphp)

Generally follows the Symfony setlist for PHP-CS-Fixer. The Symfony standards are currently based on PER-2.0.

Currently handled per project by copy-paste.

Linting: PHP\_CodeSniffer (`.phpcs.xml.dist`)
---------------------------------------------

[](#linting-php_codesniffer-phpcsxmldist)

Primarily based on the `WordPress-VIP-Go` ruleset. While we do not use WordPress VIP hosting, this standard encourages best-practices while allowing for stylistic flexibility. This is achieved by applying a curated set of rules from the core WordPress Coding Standards in addition to a set of custom sniffs. Unfortunately (but understandably), many of the messages make reference to WordPress VIP as a platform, as the standard assumes that the code will target that hosting platform.

We also include many hand-picked additions from the `SlevomatCodingStandard` and some a few adapted from the `PSR12NeutronRuleset`\[[link](https://github.com/szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset)\].

In previous versions, we extended the Doctrine coding standard, but it was too opinionated and resulted in an endless back-and-forth disagreement between `php-cs-fixer` and `phpcbf`. Despite our efforts to counteract that behavior, the result of applying fixes with similar goals often differed slightly.

Type-safety: PHPStan (`.phpstan.neon.dist`)
-------------------------------------------

[](#type-safety-phpstan-phpstanneondist)

Each project must pass Level 0 checks at minimum. Upon initial introduction of PHPStan to a project, start with Level 0, then gradually increase. As far as we can tell, Level 8 is the highest achievable level in a WordPress context. Level 9 essentially prohibits the usage of mixed types.

Miscellaneous
-------------

[](#miscellaneous)

We also include a `biome.json` file here for project-internal usage. The `biome.json` here can serve as a good starting point for other projects, but currently this package is orientated towards PHP coverage only.

The `just` (`//.justfile`, `//.config/just`), `pre-commit`(`//nix/git-hooks.nix`), and `treefmt` (`//nix/treefmt.nix`) configurations are also decent starting points, but this project does not aim to provide a general-purpose template for those tools.

This project does not commit a `composer.lock` in order to prevent downstream dependency hell.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance68

Regular maintenance activity

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.1% 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 ~78 days

Recently: every ~100 days

Total

14

Last Release

150d ago

PHP version history (2 changes)0.0.1PHP &gt;=8.0

0.5.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/d14eb8a5d34e840d980cc5f0f4a6172968c47a20ba5aa3af2e7ccb964acbf06d?d=identicon)[montchr](/maintainers/montchr)

---

Top Contributors

[![astratagem](https://avatars.githubusercontent.com/u/1757914?v=4)](https://github.com/astratagem "astratagem (102 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (2 commits)")

---

Tags

coding-standardsphpcstemple-universitywordpressphpcsstatic analysis

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/kleinweb-php-coding-standards/health.svg)

```
[![Health](https://phpackages.com/badges/kleinweb-php-coding-standards/health.svg)](https://phpackages.com/packages/kleinweb-php-coding-standards)
```

###  Alternatives

[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)[phpcsstandards/phpcsutils

A suite of utility functions for use with PHP\_CodeSniffer

6333.4M58](/packages/phpcsstandards-phpcsutils)[woocommerce/woocommerce-sniffs

WooCommerce sniffs

496.8M42](/packages/woocommerce-woocommerce-sniffs)[automattic/vipwpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions

25510.2M145](/packages/automattic-vipwpcs)[syde/phpcs

Syde PHP coding standards for WordPress projects.

1019.7k7](/packages/syde-phpcs)

PHPackages © 2026

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