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 | 23 | 1 | 1.3 | 19.0 | MIT | 3 years ago | |
| simplesamlphp/assert | 0.90 | 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 | 205K | 0 | 20.5 | 64.9 | LGPL-2.1 | 1 week ago | |
| respect/validation | 0.89 | 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,031 | 6,156 | 772 | 892K | 8 | 69.6 | 39.2 | MIT | 1 month ago | |
| jasonmccreary/laravel-test-assertions | 0.89 | 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. | 351 | 351 | 36 | 131K | 2 | 23.6 | 39.7 | — | 4 months ago | |
| lastdragon-ru/lara-asp-testing | 0.88 | 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 | — | |
| draw/validator | 0.88 | PHP validation library providing a fluent API to define rules, validate arrays/inputs, and collect errors. Lightweight and framework-agnostic, suitable for Laravel or standalone apps. | 0 | 0 | 0 | 108 | 0 | 0.0 | 28.1 | MIT | — | |
| campanda/commons-ensure-bundle | 0.88 | — | 0 | 0 | 0 | 0 | 0 | 0.3 | — | LGPL-3.0 | 7 years ago | |
| symfony/validator | 0.88 | Symfony Validator provides a flexible validation system based on the JSR-303/Bean Validation model. Define constraints via annotations/attributes, YAML/XML, or PHP, validate objects and values, and get detailed, localized violation messages. | 2,683 | 2,747 | 107 | 6M | 0 | 50.3 | 54.1 | MIT | 3 weeks ago | |
| cakephp/validation | 0.88 | Lightweight validation library from the CakePHP ecosystem. Define rules and validators for arrays and data objects, run checks, and collect readable error messages. Useful standalone or within CakePHP apps for consistent input validation. | 43 | 44 | 8 | 7K | 0 | 0.5 | 30.0 | NOASSERTION | — | |
| beberlei/assert | 0.87 | 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,429 | 2,457 | 187 | 2M | 30 | 55.6 | 64.0 | NOASSERTION | 1 month 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 | 6K | 0 | 0.0 | 51.8 | — | — | |
| helmich/phpunit-json-assert | 0.86 | Adds concise JSON assertions to PHPUnit using JSONPath expressions and JSON Schema validation. Use the JsonAssertions trait to verify complex JSON/data structures with readable assert* helpers. Install via Composer and choose the branch matching your PHPUnit/PHP version. | 130 | 129 | 27 | 80K | 3 | 16.4 | 43.0 | MIT | 4 months ago |
How can I help you explore Laravel packages today?