zenstruck/assert
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| beberlei/assert | 0.83 | 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. | 2,428 | 2,459 | 186 | 2M | 29 | 57.1 | 65.9 | NOASSERTION | 1 year ago | |
| webmozart/assert | 0.83 | 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.81 | 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/console-test | 0.81 | Test your Symfony Console commands with ease. zenstruck/console-test provides a lightweight harness to run commands, feed input, capture output, and assert exit codes and messages—ideal for fast, reliable unit/integration tests without booting full apps. | 58 | 58 | 8 | 44K | 2 | 25.1 | 46.7 | MIT | 4 months ago | |
| bovigo/assert | 0.81 | Functional-style assertions for PHP unit tests. Use assertThat(value, predicate[, description]) for readable checks with helpful failure messages. Integrates with PHPUnit via AssertionFailure extending AssertionFailedError. Requires PHP 8.3+. | 13 | 13 | 6 | 905 | 1 | 29.4 | 29.5 | BSD-3-Clause | 4 months ago | |
| codeception/module-asserts | 0.80 | 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 | |
| nette/tester | 0.77 | Nette Tester is a lightweight PHP unit testing framework focused on fast execution and readable assertions. It supports test cases, data providers, output capture, and isolation of tests, making it easy to write reliable automated tests without heavy setup. | 484 | 491 | 73 | 118K | 13 | 38.4 | 48.2 | NOASSERTION | 2 months ago |
How can I help you explore Laravel packages today?