PHPackages                             bytic/assert - 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. bytic/assert

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

bytic/assert
============

Bytic assert component

0.1.3(5mo ago)0304PHPPHP ^7.4|^8.0

Since Feb 11Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/bytic/assert)[ Packagist](https://packagist.org/packages/bytic/assert)[ RSS](/packages/bytic-assert/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

Assert
======

[](#assert)

Validating data and throwing exceptions is a great way to make your code more robust. It comes in handy especially in domain logic objects like Actions or Commands.

### Why another assertion library

[](#why-another-assertion-library)

There are two great and very used PHP assertion libraries:

- \[beberlei/assert\]
- \[webmozart/assert\]

What we hope to achive with this implementation is to provide:

- chained assertions (we really like the Pest expectations approach)
- a fluent way to provide optional arguments (messages, code etc.)
- provide custom exception classes

Usage
-----

[](#usage)

```
Assert::that($var)
    ->isNumeric()
    ->equals(5)
    ->orFail("Not Numeric")
    ->throw(MyCustomException::class);
```

#### Inspiration

[](#inspiration)

-
-
-
-

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance72

Regular maintenance activity

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

4

Last Release

157d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bee4d69e72d2a9819fbbb63e3d81c904273f04bbcce9e0105c0f40fba73ef73d?d=identicon)[gabrielsolomon](/maintainers/gabrielsolomon)

---

Top Contributors

[![gabrielsolomon](https://avatars.githubusercontent.com/u/17990591?v=4)](https://github.com/gabrielsolomon "gabrielsolomon (8 commits)")

### Embed Badge

![Health badge](/badges/bytic-assert/health.svg)

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

###  Alternatives

[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k27.9M2.2k](/packages/infection-infection)[phparkitect/phparkitect

Enforce architectural constraints in your PHP applications

9184.1M24](/packages/phparkitect-phparkitect)[driftingly/rector-laravel

Rector upgrades rules for Laravel Framework

1.2k14.2M667](/packages/driftingly-rector-laravel)[symplify/phpstan-rules

Set of Symplify rules for PHPStan

26712.1M305](/packages/symplify-phpstan-rules)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[nyholm/nsa

See everything and do whatever you want. No privacy rule will stop us. Used in tests, debugging and fixtures to access properties and methods.

2286.2M85](/packages/nyholm-nsa)

PHPackages © 2026

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