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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| atournayre/assert | 0.87 | — | 0 | 0 | 0 | 23 | 1 | 1.3 | 19.0 | MIT | 3 years ago | |
| webmozart/assert | 0.86 | 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. | 7,651 | 7,721 | 164 | 12M | 24 | 64.1 | 60.9 | MIT | 1 month ago | |
| testo/assert | 0.85 | 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 | — | — | |
| 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. | 105 | 104 | 5 | 1M | 1 | 19.1 | 61.4 | MIT | 5 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. | 82 | 82 | 5 | 692K | 1 | 12.8 | 58.2 | MIT | 7 months ago | |
| phpstan/phpstan-beberlei-assert | 0.80 | PHPStan extension for beberlei/assert. Adds improved static analysis and type inference for Assert::that and related assertions, helping PHPStan understand refined types after checks and reducing false positives in codebases using beberlei/assert. | 43 | 44 | 16 | 107K | 4 | 11.3 | 50.0 | MIT | 9 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. | 86 | 87 | 10 | 1M | 0 | 13.7 | 59.5 | MIT | 6 months ago | |
| ockcyp/covers-validator | 0.69 | Validate and normalize cover image uploads in Laravel: checks size, dimensions, aspect ratio, and file type; returns clear validation errors and helpers for cover/thumbnail rules. Easy drop-in rules for forms, APIs, and media pipelines. | 21 | 22 | 8 | 4K | 1 | 12.4 | 32.2 | MIT | 9 months ago | |
| symplify/easy-coding-standard | 0.69 | Easy Coding Standard (ECS) makes PHP coding standards effortless on PHP 7.2–8.5. Fast parallel runs, supports PHP_CodeSniffer and PHP-CS-Fixer, uses prepared rule sets, generates ecs.php config on first run, and can check and auto-fix code with --fix. | 1,617 | 1,632 | 92 | 933K | 0 | 33.5 | 44.3 | MIT | 1 month ago | |
| phpcsstandards/phpcsextra | 0.69 | PHPCSExtra adds extra rules, sniffs, and tooling to enhance PHP_CodeSniffer code style checks. Designed to complement existing standards, it helps catch more issues, enforce consistency, and integrate smoothly into CI for cleaner PHP codebases. | 103 | 103 | 7 | 2M | 36 | 24.9 | 71.8 | LGPL-3.0 | 8 months ago | |
| mnapoli/hard-mode | 0.69 | Hard Mode is a small PHP library by Matthieu Napoli that encourages writing more explicit, robust code by making certain “bad practices” harder or impossible at runtime. Useful for catching hidden assumptions and improving code quality in existing projects. | 9 | 9 | 1 | 452 | 0 | 1.3 | 23.0 | MIT | 5 years ago | |
| neuecommerce/coding-standards | 0.68 | Opinionated PHP coding standards for projects using Laravel Pint. Provides a ready-to-use Pint configuration and consistent formatting rules to keep code style uniform across teams and repositories. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| thecodingmachine/phpstan-strict-rules | 0.68 | Extra-strict PHPStan ruleset that flags risky or inconsistent PHP patterns beyond the default checks. Helps enforce cleaner, safer code by catching edge cases and enforcing best practices, with easy opt-in configuration for existing PHPStan setups. | 289 | 290 | 27 | 51K | 7 | 32.8 | 38.3 | — | 3 weeks ago | |
| slevomat/coding-standard | 0.68 | — | 1,479 | 1,486 | 194 | 3M | 91 | 62.4 | 81.1 | MIT | 3 weeks ago |
How can I help you explore Laravel packages today?