beberlei/assert
Lightweight assertion library for validating method arguments and input data in PHP. Provides a fluent, readable API with many built-in rules (string, numeric, email, UUID, collection, etc.), clear exceptions, and easy extensibility for custom constraints.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| webmozart/assert | 0.85 | webmozart/assert is a lightweight PHP assertion library for validating method input/output. It provides many type and value checks via a single Assert class and throws InvalidArgumentException with consistent, readable default error messages (or custom ones). | 7,647 | 7,722 | 158 | 11M | 25 | 64.9 | 62.1 | MIT | 1 month ago | |
| codeception/lib-asserts | 0.84 | Lightweight assertion library used by Codeception. Provides clear, dependency-free assert helpers for writing expressive tests in PHP, with informative failure messages and easy integration into any PHPUnit-style workflow. | 104 | 104 | 5 | 1M | 1 | 26.5 | 65.0 | MIT | 2 months ago | |
| zenstruck/assert | 0.83 | Lightweight PHP assertion helpers for cleaner, safer code. zenstruck/assert provides expressive, fluent assertions and value validation with helpful exception messages, improving readability in libraries and Laravel apps without bringing a full testing framework. | 81 | 81 | 5 | 720K | 0 | 25.0 | 64.5 | MIT | 4 months ago | |
| phpstan/phpstan-beberlei-assert | 0.80 | PHPStan extension that adds type inference for beberlei/assert, helping static analysis understand assertion-based checks. Improves accuracy of reported types after Assert::that(), Assert::string(), Assert::notNull(), and similar calls in your code. | 43 | — | 15 | — | 4 | 21.9 | 1.8 | MIT | 6 months ago | |
| codeception/module-asserts | 0.79 | Codeception Asserts module adds rich assertion helpers for your tests, letting you use a wide set of PHPUnit-style assertions directly in Codeception suites. Ideal for unit, functional, and acceptance tests to keep checks readable and failures clear. | 85 | 86 | 10 | 1M | 0 | 25.0 | 65.0 | MIT | 3 months ago |
How can I help you explore Laravel packages today?