PHPackages                             nunzion/php-expect - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. nunzion/php-expect

ActiveLibrary[Testing &amp; Quality](/categories/testing)

nunzion/php-expect
==================

An expressive but lightweight library to validate preconditions and invariants.

1.1.0(12y ago)150.1k↓50%8MITPHP &gt;=5.3.0

Since May 12Compare

[ Source](https://bitbucket.org/nunzion/php-expect.git)[ Packagist](https://packagist.org/packages/nunzion/php-expect)[ RSS](/packages/nunzion-php-expect/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependenciesVersions (10)Used By (8)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://bitbucket.org/nunzion/php-expect.git).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~91 days

Total

8

Last Release

4384d ago

Major Versions

0.5.0 → 1.0.02014-04-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bbf4a94e3658e3567154235723a15a30433f80e2af8049619cb30248e8821ac?d=identicon)[Henning Dieterichs](/maintainers/Henning%20Dieterichs)

---

Tags

validationexceptionassertassertionargumentexpectpreconditioninvariant

### Embed Badge

![Health badge](/badges/nunzion-php-expect/health.svg)

```
[![Health](https://phpackages.com/badges/nunzion-php-expect/health.svg)](https://phpackages.com/packages/nunzion-php-expect)
```

###  Alternatives

[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[peridot-php/leo

Next level assertion and matcher library for PHP

36366.4k50](/packages/peridot-php-leo)[elliotchance/concise

Concise is test framework for using plain English and minimal code, built on PHPUnit.

45223.8k4](/packages/elliotchance-concise)[nilportugues/assert

A simple and elegant assertion and guard methods library for input validation.

1066.0k7](/packages/nilportugues-assert)[respect/assertion

The power of Respect\\Validation into an assertion library

2828.0k](/packages/respect-assertion)

PHPackages © 2026

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