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

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

pressbooks/coding-standards
===========================

1.1.0(4y ago)227.0k—7.8%2[1 issues](https://github.com/pressbooks/coding-standards/issues)[2 PRs](https://github.com/pressbooks/coding-standards/pulls)13GPL-3.0-or-laterPHPCI passing

Since Dec 14Pushed 1y ago7 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (7)Used By (13)

Pressbooks Coding Standards
===========================

[](#pressbooks-coding-standards)

These are our coding standards. There are many like these, but these are ours.

Our standards are basically [Human Made's coding standards](https://github.com/humanmade/coding-standards) with a few tweaks:

- Use camelCase for class methods &amp; properties, UPPERCASE for class constants, snake\_case everywhere else.
- PHP Sessions are allowed.
- [A few more...](https://github.com/pressbooks/coding-standards/blob/master/Pressbooks/ruleset.xml)

Tips
----

[](#tips)

Pressbooks classes that extend WP Core classes will fail the `PSR1.Methods.CamelCapsMethodName` rule. In those cases, add something like this in your phpcs.ruleset.xml file:

```

    /inc/admin/class-catalog-list-table.php
    /inc/admin/class-network-managers-list-table.php
    /api/endpoints/controller/*

```

Link to docs:

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance23

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community27

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

2

Last Release

1743d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5617ca8d230381ad60c37324c68fff5d0b1866a51f47b97e707a84afd0f80ce5?d=identicon)[pressbooks-ops](/maintainers/pressbooks-ops)

---

Top Contributors

[![dac514](https://avatars.githubusercontent.com/u/812192?v=4)](https://github.com/dac514 "dac514 (5 commits)")[![greatislander](https://avatars.githubusercontent.com/u/605361?v=4)](https://github.com/greatislander "greatislander (5 commits)")[![SteelWagstaff](https://avatars.githubusercontent.com/u/13485451?v=4)](https://github.com/SteelWagstaff "SteelWagstaff (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (1 commits)")

---

Tags

coding-standardshumanmade

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20269.1k13](/packages/shopsys-coding-standards)[flyeralarm/php-code-validator

A custom coding standard for FLYERALARM

2226.9k6](/packages/flyeralarm-php-code-validator)

PHPackages © 2026

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