PHPackages                             cspray/labrador-coding-standard - 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. cspray/labrador-coding-standard

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

cspray/labrador-coding-standard
===============================

A PHP\_CodeSniffer ruleset for the coding style in all Labrador packages

0.2.0(6y ago)02.6k↑44.4%17MITShell

Since Feb 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/labrador-kennel/coding-standard)[ Packagist](https://packagist.org/packages/cspray/labrador-coding-standard)[ RSS](/packages/cspray-labrador-coding-standard/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (7)

Labrador Coding Standard
========================

[](#labrador-coding-standard)

A ruleset for PHP\_CodeSniffer that defines the coding standard incorporated by Labrador packages.

Installion
----------

[](#installion)

There is only 1 supported method for installing Labrador packages; [Composer](https://getcomposer.org)

```
compose require-dev cspray/labrador-coding-standard

```

> Please note that we are installing this as a dev dependency; it is not recommended to use this library in a production environment.

Usage
-----

[](#usage)

After installing simply run either of the 2 provided binary commands: `labrador-cs` and `labrador-cbf`respectively.

```
vendor/bin/labrador-cs src/ test/
vendor/bin/labrador-cbf src/ test/

```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

2499d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2abc886f86c3f0b6a1b77879f9e88ce7bb14f5029882e276e92eeb54f2875851?d=identicon)[cspray](/maintainers/cspray)

---

Top Contributors

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

---

Tags

labrador-kennelphpcoding-styleLabrador

### Embed Badge

![Health badge](/badges/cspray-labrador-coding-standard/health.svg)

```
[![Health](https://phpackages.com/badges/cspray-labrador-coding-standard/health.svg)](https://phpackages.com/packages/cspray-labrador-coding-standard)
```

###  Alternatives

[ninjify/coding-standard

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

13499.2k14](/packages/ninjify-coding-standard)[leroy-merlin-br/coding-standard

The coding standard for PHP projects on LMBR

2138.3k15](/packages/leroy-merlin-br-coding-standard)

PHPackages © 2026

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