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. | 535 | 538 | 57 | 4M | 36 | 45.1 | 78.7 | MIT | 2 weeks 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 | 33 | 0 | 0.0 | 21.2 | 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. | 130 | 129 | 27 | 80K | 3 | 16.4 | 43.0 | MIT | 4 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 | 25 | 0 | 0.0 | 19.5 | MIT | — | |
| lendable/phpunit-extensions | 0.79 | — | 2 | 2 | 0 | 5K | 2 | 14.9 | 51.5 | MIT | 5 months ago | |
| testo/assert | 0.79 | 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 | — | — | |
| 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 | 26.9 | MIT | 3 years ago | |
| draw/tester | 0.78 | Tools for testing PHP apps: DataTester wraps PHPUnit assertions with a fluent, path-based API for arrays/objects. Includes PHPUnit extensions like CarbonReset to reset Carbon state between tests and SetUpAutowire to autowire test properties via attributes. | 0 | 0 | 0 | 818 | 0 | 0.0 | 40.2 | MIT | — | |
| 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,063 | 1,069 | 93 | 3M | 7 | 33.0 | 57.0 | MIT | 2 months 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 | 230K | 4 | 20.1 | 48.2 | WTFPL | 5 months ago | |
| khaled.alshamaa/ar-php | 0.75 | Ar-PHP is a PHP library for Arabic language processing: text shaping and normalization, transliteration, date/hijri handling, numbers-to-words, and other Arabic-specific utilities. Useful for Arabic web apps, reports, and localization. | 338 | 337 | 58 | 122K | 9 | 9.9 | 38.7 | LGPL-3.0 | 1 year ago |
How can I help you explore Laravel packages today?