PHPackages                             outsanity/phpcs - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. outsanity/phpcs

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

outsanity/phpcs
===============

The Outsanity PHPCS rules

v0.4.0(6y ago)0576↓100%1[1 PRs](https://github.com/dharple/outsanity-phpcs/pulls)1BSD-2-ClauseShell

Since Jan 14Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/dharple/outsanity-phpcs)[ Packagist](https://packagist.org/packages/outsanity/phpcs)[ RSS](/packages/outsanity-phpcs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (1)

Outsanity PHPCS rules
=====================

[](#outsanity-phpcs-rules)

This is based on PSR-12 and my personal preferences. It's also based on [AlexHowansky](https://github.com/AlexHowansky)'s work on [ork-phpcs](https://github.com/AlexHowansky/ork-phpcs) and other phpcs repos.

---

Conventions
===========

[](#conventions)

Code
----

[](#code)

Source lives in `src`.

Namespace prefix is `\Outsanity\ProjectOrLibrary\`, so projects or librarys can be used side-by-side if the need arises.

Tests
-----

[](#tests)

Unit tests live in `tests`.

Test namespace prefix is `\Outsanity\ProjectOrLibrary\Tests\`, with the understanding that they will not be imported between projects.

---

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance58

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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 ~4 days

Total

5

Last Release

2287d ago

### Community

Maintainers

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

---

Top Contributors

[![dharple](https://avatars.githubusercontent.com/u/4107745?v=4)](https://github.com/dharple "dharple (30 commits)")

---

Tags

phpphpcs

### Embed Badge

![Health badge](/badges/outsanity-phpcs/health.svg)

```
[![Health](https://phpackages.com/badges/outsanity-phpcs/health.svg)](https://phpackages.com/packages/outsanity-phpcs)
```

###  Alternatives

[drupal/coder

Coder is a library to review Drupal code.

3043.6M458](/packages/drupal-coder)[gskema/phpcs-type-sniff

PHPCS sniff to enforce PHP7 types and array types

41121.6k2](/packages/gskema-phpcs-type-sniff)[ninjify/coding-standard

Tuned &amp; very strict coding standards for PHP projects. Trusted by Contributte, Apitte, Nettrine and many others.

13497.1k13](/packages/ninjify-coding-standard)[leroy-merlin-br/coding-standard

The coding standard for PHP projects on LMBR

2137.0k10](/packages/leroy-merlin-br-coding-standard)

PHPackages © 2026

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