ongr/ongr-strict-standard
A strict PHP_CodeSniffer coding standard from ONGR that enforces clean, consistent, high-quality PHP code. Built on PSR standards with additional rules for formatting, naming, and code structure, it helps teams catch style issues early and keep codebases readable and maintainable.
require-dev tooling (maintenance, PHP version support, license, CVE surface) before it lands in the lockfile?Consider it when:
Look elsewhere when:
slevomat/coding-standard on a PSR-12 base, or Laravel Pint if you're on Laravel — both actively maintained and installable today.Recommended posture: do not add it as a require-dev dependency. Treat it as a read-only artifact — mine the ruleset, reproduce the valuable subset on a maintained standard, and spend the saved maintenance budget on a CI ratchet instead.
For executives (one paragraph). This is a code-style rulebook from 2015, not a product component — it ships no runtime code and nothing customers see. Its value to us is as a free, opinionated template: it shows what a "strict" baseline looks like and lets us decide cheaply whether style should be enforced automatically in CI. I do not recommend adopting it as a dependency: it's archived, unreleased since 2015, used by no other packages we can find, and predates the current generation of PHP tooling. Cost of adopting is low in dollars but high in risk (stale runtime and tooling pinning); the benefit is achievable in roughly a day of engineering by reimplementing the rules we like on a maintained standard. Recommendation: use as reference, do not depend.
For engineering (short brief). ongr/ongr-strict-standard is a PHPCS ruleset — strict PSR-2 layered on Squiz sniffs, MIT, last tagged June 2015, archived, 13 stars, 0 dependents. Two facts make it an evaluation artifact rather than a dependency: (1) it targets the PHPCS 2.x era, so on PHPCS 3/4 and PHP 8 you'd be pinning EOL tooling just to run it; (2) with no upstream, any incompatibility is ours to fix forever. What's worth taking is the decisions embedded in the ruleset — strictness levels, spacing/ordering/naming choices, and which Squiz sniffs the authors treated as non-negotiable. Concretely: run it once on a branch to produce a violation baseline, keep the ~20 rules we actually agree with, encode them as a PHP_CodeSniffer 3 ruleset using slevomat/coding-standard on a PSR-12 base (or Pint if we standardize on Laravel), and wire that as a non-blocking CI report first, then a ratchet ("no new violations") once the baseline is stable. If we later need autofix at scale, add PHP-CS-Fixer or Pint rather than extending a hand-rolled ruleset. Net: the package is a free spec; the deliverable is our own maintained standard, and we shouldn't carry a dead dependency to get it.
How can I help you explore Laravel packages today?