hamcrest/hamcrest-php
Official PHP port of Hamcrest matchers for expressive assertions in tests. Use MatcherAssert::assertThat() or convenient global functions (assertThat, equalTo, is, both/andAlso, either/orElse) to build readable, composable matchers with PHP-friendly typing.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| phpstan/phpstan-phpunit | 0.80 | PHPStan extension for PHPUnit: improves type inference for mocks (intersection types for createMock/getMock), understands Foo|MockObject phpDocs, adds early-terminating methods to avoid undefined vars, and refines assert() types. Optional strict rules catch improper assertion usage. | 531 | 534 | 56 | 3M | 35 | 38.6 | 74.3 | MIT | 3 months ago | |
| lastdragon-ru/phpunit-extensions | 0.80 | 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 | — | |
| helmich/phpunit-json-assert | 0.79 | 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. | 129 | 129 | 27 | 79K | 3 | 19.0 | 43.7 | MIT | 3 months ago | |
| lastdragon-ru/phpunit-xml | 0.79 | Tools for working with PHPUnit’s XML configuration: parse, build, and validate phpunit.xml files programmatically. Useful for CI automation, config generation, and upgrades/migrations between PHPUnit versions, with a focused API designed for PHP projects. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| lendable/phpunit-extensions | 0.79 | — | 2 | 2 | 0 | 3K | 2 | 17.8 | 49.5 | MIT | 3 months ago | |
| phpunitgoodpractices/traits | 0.78 | A small set of PHP traits to improve PHPUnit test code by reducing boilerplate and encouraging cleaner, reusable assertions and setup patterns. Useful for Laravel and general PHP projects that want more readable, maintainable tests. | 22 | 22 | 1 | 12K | 3 | 2.6 | 27.0 | MIT | 3 years ago | |
| testo/assert | 0.78 | 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 | — | — | |
| cosma/testing-bundle | 0.77 | — | 3 | 4 | 2 | 0 | 3 | 0.8 | 0.4 | — | — | |
| behat/gherkin | 0.76 | behat/gherkin is a PHP library for parsing the Gherkin language used in BDD. Read and tokenize feature files, build an AST, and integrate with Behat or other test runners to execute human-readable scenarios in your test suite. | 1,061 | 1,069 | 93 | 3M | 7 | 35.8 | 57.7 | MIT | 2 weeks ago | |
| php-mock/php-mock-phpunit | 0.75 | Integrate php-mock with PHPUnit to mock built-in PHP functions (like time(), file_get_contents(), etc.) in a controlled, namespaced way. Ideal for unit tests that need to simulate IO, time, and other global behaviors without changing production code. | 171 | 174 | 20 | 263K | 4 | 22.2 | 49.9 | WTFPL | 3 months ago | |
| automattic/phpcs-neutron-standard | 0.67 | — | 93 | 93 | 8 | 7K | 5 | 6.9 | 27.0 | MIT | 5 years ago | |
| phpcsstandards/phpcsutils | 0.66 | Utilities and helper classes for building and maintaining PHP_CodeSniffer (PHPCS) standards and sniffs. Provides common abstractions and compatibility helpers to simplify writing custom rulesets and speed up development of consistent coding standards. | 63 | 63 | 8 | 2M | 25 | 25.7 | 68.3 | LGPL-3.0 | 5 months ago | |
| ircmaxell/php-yacc | 0.64 | PHP port of kmyacc: a YACC/LALR(1) parser generator. Feed it a YACC grammar plus a parser template to generate a PHP parser. Useful for building fast parsers for structured languages; generation is resource-heavy, runtime parsing is efficient. | 155 | 156 | 16 | 3K | 2 | 22.0 | 20.3 | NOASSERTION | 1 month ago | |
| phpcsstandards/phpcsextra | 0.64 | 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 | 25 | 23.6 | 68.2 | LGPL-3.0 | 6 months ago | |
| kubawerlos/php-cs-fixer-custom-fixers | 0.63 | Custom fixers for FriendsOfPHP PHP-CS-Fixer. Install via Composer, register the Fixers set, then enable individual rules to enforce additional style conventions (e.g., prefer class constants, remove leading global namespace slashes, tidy PHPDoc params). | 240 | 241 | 25 | 341K | 4 | 32.0 | 51.6 | MIT | 3 weeks ago | |
| phpcsstandards/phpcsdevtools | 0.63 | Developer tools for building and maintaining PHP_CodeSniffer standards. Helps scaffold sniffs, run and debug PHPCS rules, manage tests, and streamline local workflows so you can create, validate, and ship custom coding standards faster. | 17 | 17 | 6 | 13K | 4 | 4.7 | 42.7 | LGPL-3.0 | 11 months ago | |
| pedrotroller/php-cs-custom-fixer | 0.63 | 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. | 81 | 83 | 10 | 21K | 4 | 18.4 | 41.9 | — | 8 months ago | |
| moxio/php-codesniffer-sniffs | 0.63 | Custom PHP_CodeSniffer 3.x sniffs from Moxio to catch subtle PHP bugs and unexpected behavior. Provides a standalone ruleset or individual sniffs for other standards, enforcing safer comparisons, strict base64_decode, switch continue rules, and more. | 17 | 18 | 11 | 4K | 0 | 20.9 | 35.5 | MIT | 4 months ago | |
| dmp/cg-lib | 0.63 | CG library is a PHP 8.1+ toolset for generating PHP code. It helps assemble and enhance classes by adding reusable behaviors, making it easier to build and modify code structures programmatically during code generation workflows. | 0 | 0 | 0 | 15 | 0 | 0.3 | 16.6 | Apache-2.0 | 1 year ago |
How can I help you explore Laravel packages today?