PHPackages                             struct/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. struct/contracts

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

struct/contracts
================

Simple package for providing contracts for structured and more complex data types, similar to 'Struct' in other programming languages

1.6.2(1w ago)08.1k↓51.3%3MITPHPPHP ^8.1.0

Since Jun 16Pushed 6mo ago1 watchersCompare

[ Source](https://gitlab.com/php-structs/release-packages/struct-contracts)[ Packagist](https://packagist.org/packages/struct/contracts)[ RSS](/packages/struct-contracts/feed)WikiDiscussions main Synced 2d ago

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

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://gitlab.com/php-structs/release-packages/struct-contracts).

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance82

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

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

Recently: every ~218 days

Total

6

Last Release

8d ago

Major Versions

1.6.1 → 2.0.x-dev2025-02-24

PHP version history (2 changes)1.5.0PHP ^8.1.0

2.0.x-devPHP ^8.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/46663553a22f0c1daf03e2defcabdf6c1f8f1aada7aff2e0b5c503c63cd236e1?d=identicon)[nhovratov](/maintainers/nhovratov)

![](https://www.gravatar.com/avatar/4a1a7785bbdd3c8756ee27d85de4b225e2231041a8868c70f2b6d45046893dc6?d=identicon)[timo.poppinga](/maintainers/timo.poppinga)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/struct-contracts/health.svg)

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

###  Alternatives

[caseyamcl/toc

Simple Table-of-Contents Generator for PHP. Generates TOCs based off H1...H6 tags

91368.9k5](/packages/caseyamcl-toc)[humanmade/query-filter

Query Loop Block filters

11715.8k](/packages/humanmade-query-filter)

PHPackages © 2026

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