PHPackages                             rmp-up/wp-contracts - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. rmp-up/wp-contracts

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

rmp-up/wp-contracts
===================

1.1.1(5y ago)02.3k↑50%proprietaryPHPPHP &gt;=7.0 &lt;7.5CI failing

Since Jan 1Pushed 5y agoCompare

[ Source](https://github.com/rmp-up/wp-contracts)[ Packagist](https://packagist.org/packages/rmp-up/wp-contracts)[ RSS](/packages/rmp-up-wp-contracts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

WordPress contracts
===================

[](#wordpress-contracts)

> Helper for PHP (especially WordPress)

Features
--------

[](#features)

- Rewindable Generators
- Hydrate and exchange protected fields in objects
- [System logger](https://php.net/syslog) compatible logging:
    - Forward to `syslog()`
    - Delegate to [PSR-3 logger](https://www.php-fig.org/psr/psr-3/)
    - Forward to [`error_log()`](https://php.net/function.error-log)respecting configured [error reporting levels](https://php.net/error_reporting)
    - Forward to [WP\_CLI](https://make.wordpress.org/cli/)
    - Append to an [array-like variable/reference](https://www.php.net/class.arrayaccess)
- Message Bus (delegating to WP\_Hook)
    - Decouple exception handling per action/filter
    - Stop propagation

Tested with:

- PHP 7.0 - 7.4
- WordPress &gt;= 4.5

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Total

3

Last Release

1840d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.0 &lt;=7.4

1.1.1PHP &gt;=7.0 &lt;7.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24290366?v=4)[Pretzlaw](/maintainers/pretzlaw)[@pretzlaw](https://github.com/pretzlaw)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rmp-up-wp-contracts/health.svg)

```
[![Health](https://phpackages.com/badges/rmp-up-wp-contracts/health.svg)](https://phpackages.com/packages/rmp-up-wp-contracts)
```

###  Alternatives

[dvdoug/boxpacker

An implementation of the 3D (actually 4D) bin packing/knapsack problem (aka creating parcels by putting items into boxes)

6522.7M18](/packages/dvdoug-boxpacker)[cspray/annotated-container

Create Dependency Injection containers configured with PHP8 Attributes.

411.3k5](/packages/cspray-annotated-container)

PHPackages © 2026

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