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.84 | 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 | |
| codeception/lib-asserts | 0.83 | 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 | |
| bovigo/assert | 0.83 | 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 | 1K | 1 | 18.1 | 28.8 | BSD-3-Clause | 7 months ago | |
| atournayre/assert | 0.82 | — | 0 | 0 | 0 | 23 | 1 | 1.3 | 19.0 | MIT | 3 years ago | |
| testo/assert | 0.82 | 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 | — | — | |
| webmozart/assert | 0.81 | 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,650 | 7,721 | 164 | 12M | 24 | 64.1 | 61.3 | MIT | 1 month 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 | 25K | 2 | 12.9 | 38.8 | MIT | 7 months ago | |
| ta-tikoma/phpunit-architecture-test | 0.76 | Architecture testing for PHP projects using PHPUnit. Define and enforce dependency, namespace, and layer rules (e.g., no forbidden coupling, keep domains isolated) and catch architectural violations in CI with fast, expressive tests. | 109 | 109 | 12 | 4M | 2 | 1.3 | 55.1 | MIT | — | |
| joomla/test | 0.74 | A small Joomla Framework utility package that streamlines PHPUnit unit testing. Provides a TestHelper with bulk mock configuration (callbacks and canned return values) plus reflection helpers to reduce repetitive test setup and access internals when needed. | 3 | 4 | 6 | 14K | 0 | 9.2 | 51.3 | GPL-2.0 | 9 months ago | |
| simpletest/simpletest | 0.74 | SimpleTest is a PHP unit testing framework with web site testing and mock objects. Install via Composer (simpletest/simpletest) for PHP 7.1+ and run its own unit and acceptance test suites; issues and community support via GitHub and Stack Overflow. | 148 | 153 | 49 | 3K | 3 | 8.3 | 20.3 | LGPL-2.1 | 10 months ago | |
| editorconfig-checker/editorconfig-checker | 0.68 | CLI tool to validate files against your .editorconfig rules. Scan projects and report formatting issues (indentation, line endings, charset, trailing whitespace, final newline). Ideal for CI pipelines and keeping code style consistent across teams. | 75 | 74 | 18 | 27K | 3 | 10.9 | 36.8 | MIT | 1 year ago | |
| consolidation/config | 0.65 | Lightweight configuration library for PHP. Load and merge settings from multiple files and formats with a simple API, making it easy to manage app config across environments and projects. Often used as a standalone component in larger toolchains. | 169 | 171 | 18 | 1M | 9 | 3.9 | 54.8 | NOASSERTION | — | |
| zendframework/zend-pimple-config | 0.64 | zendframework/zend-pimple-config integrates Zend Framework configuration with the Pimple dependency injection container. It lets you load and merge config data and wire services/parameters into a Pimple container for cleaner, centralized DI setup. | 6 | 6 | 2 | 22 | 1 | 1.0 | 6.0 | BSD-3-Clause | 7 years ago | |
| pedrotroller/php-cs-custom-fixer | 0.64 | Custom fixers for PHP-CS-Fixer. Adds rules like ordering Behat context step definition methods by annotation and method name, with options for detecting context classes. Install via Composer and register the fixers in your .php_cs(.dist) config. | 82 | 83 | 10 | 18K | 4 | 16.2 | 40.1 | — | 9 months ago | |
| eliashaeussler/php-cs-fixer-config | 0.64 | Reusable PHP-CS-Fixer config package by Elias Häussler. Provides a ready-to-use ruleset and sensible defaults to keep PHP code style consistent across projects, with easy installation and quick integration into existing fixer setups. | 2 | 2 | 0 | 18K | 1 | 13.1 | 55.7 | GPL-3.0 | 7 months ago | |
| phootwork/php-cs-fixer-config | 0.63 | Reusable PHP-CS-Fixer configuration by phootwork. Provides a shared ruleset and presets to standardize code style across projects, making it easy to apply consistent formatting in CI and local development with minimal setup. | 3 | 4 | 2 | 54 | 0 | 10.1 | 17.1 | MIT | 8 months ago | |
| oscarotero/php-cs-fixer-config | 0.63 | Opinionated PHP-CS-Fixer configuration by Oscar Otero. Drop-in ruleset to standardize code style across projects, keep formatting consistent, and reduce bikeshedding. Ideal for teams wanting sensible defaults with minimal setup. | 2 | 2 | 1 | 4K | 0 | 1.5 | 42.8 | — | 1 year ago |
How can I help you explore Laravel packages today?