webmozart/assert
Lightweight PHP assertion library for validating method input/output. Provides fast, readable checks via Webmozart\Assert\Assert with consistent error-message placeholders, throwing InvalidArgumentException on failure. Ideal for safer, less repetitive validation code.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| atournayre/assert | 0.90 | — | 0 | 0 | 0 | 15 | 1 | 1.3 | 16.6 | MIT | 2 years ago | |
| sinnbeck/laravel-dom-assertions | 0.89 | Add fluent, expressive DOM assertions to your Laravel test suite. Parse HTML responses and assert elements, attributes, text, and structure with readable APIs—making feature and browser-style tests clearer and less brittle. | 106 | 106 | 10 | 15K | 0 | 29.6 | 34.8 | MIT | 2 weeks ago | |
| lastdragon-ru/phpunit-extensions | 0.88 | PHPUnit extensions for PHP projects, adding extra test utilities and helpers to streamline assertions, fixtures, and test setup. Designed to integrate cleanly with PHPUnit and improve developer productivity in automated testing workflows. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| simplesamlphp/assert | 0.88 | Fork of webmozart/assert that lets every assertion throw your chosen exception (or a default AssertionFailedException) instead of always InvalidArgumentException. Adds a few custom assertions aimed at XML/SAML2 use cases. | 7 | 7 | 3 | 224K | 1 | 0.5 | 55.2 | LGPL-2.1 | 1 year ago | |
| lastdragon-ru/lara-asp-testing | 0.86 | Testing utilities for integrating Lara ASP into Laravel apps. Provides helpers, fakes, and assertions to simplify writing automated tests around ASP policies, decisions, and request/response flows in your application. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| beberlei/assert | 0.86 | 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,426 | 2,457 | 186 | 2M | 29 | 37.1 | 54.3 | NOASSERTION | 1 year ago | |
| respect/validation | 0.86 | Powerful PHP validation engine with 150+ tested validators. Build readable, chainable rules like numeric()->positive()->between(). Includes advanced exception handling and thorough docs. Great for complex input validation in any PHP app. | 6,017 | 6,142 | 775 | 806K | 5 | 67.3 | 36.8 | MIT | 3 days ago | |
| digitalrevolution/utils | 0.86 | — | 1 | 1 | 8 | 3K | 1 | 27.8 | 51.8 | MIT | 1 month ago | |
| campanda/commons-ensure-bundle | 0.86 | — | 0 | 0 | 0 | 0 | 0 | 0.3 | — | LGPL-3.0 | 7 years ago | |
| testo/testo | 0.86 | Testo is an extensible PHP testing framework with a lightweight core and middleware system. It lets you fully control your test environment while keeping familiar PHP syntax. Includes an init command, suite/plugin config via testo.php, and Composer scripts. | 0 | 181 | — | 2K | — | 42.2 | 26.4 | — | — | |
| jasonmccreary/laravel-test-assertions | 0.86 | Adds a trait of extra PHPUnit assertions for Laravel testing. Confirm controllers/actions and named routes use specific FormRequest validation or middleware, compare validation rules (subset or exact), check rule instances, and assert view data is explicitly null. | 352 | 352 | 36 | 117K | 2 | 25.6 | 39.5 | — | 2 months ago | |
| testo/assert | 0.86 | Assertion plugin for the Testo PHP testing framework. Adds a fluent assert/expect facade, expectation lifecycle, and helpers for matching thrown exceptions. Reports comparisons through Testo’s standard pipeline. Install via Composer: testo/assert. | 0 | 0 | 0 | 2K | 0 | 0.0 | 43.6 | — | — | |
| symfony/validator | 0.86 | Symfony Validator component validates values and object graphs using JSR-303 Bean Validation rules. Includes rich constraints, constraint validators, groups, custom constraints, and internationalized error messages. Integrates with forms and frameworks. | 2,689 | 2,744 | 106 | 6M | 0 | 51.4 | 55.2 | MIT | 1 week ago |
How can I help you explore Laravel packages today?