phpspec/prophecy
Highly opinionated yet flexible PHP mocking framework for unit tests. Create test doubles with a Prophet, define expected calls and return values, then reveal mocks and verify predictions. Works with PHPUnit and other frameworks; requires PHP 7.2+.
|
Package
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| erickskrauch/php-cs-fixer-custom-fixers | Custom PHP-CS-Fixer fixers by Erick Skrauch. Adds opinionated formatting rules like aligning multiline parameters, inserting blank lines around class bodies and before returns, spacing after control statements, fixing multiline if braces, ordering overrides, and Yii2 ::className() replacement. | 30 | 30 | 2 | 108K | 2 | 23.6 | 57.5 | MIT | 4 months ago | |
| facile-it/facile-coding-standard | PHP coding standard based on PHP-CS-Fixer by Facile.it. Installs via Composer with an interactive setup that generates a .php-cs-fixer.dist.php, auto-detects files from composer autoload (psr-0/psr-4/classmap), and adds cs-check/cs-fix scripts. | 10 | 10 | 9 | 17K | 2 | 26.2 | 52.3 | — | 5 months ago | |
| facile-it/paraunit | Run PHPUnit test suites faster by executing tests in parallel across multiple processes. Includes Symfony-based CLI, compatibility across PHPUnit/Symfony versions, and parallel code coverage generation (auto-chooses PCOV, Xdebug, or PHPDbg). | 145 | 146 | 18 | 31K | 14 | 35.0 | 45.0 | Apache-2.0 | 1 month ago | |
| jangregor/phpstan-prophecy | PHPStan extension for phpspec/prophecy that improves type inference in tests. It teaches PHPStan the real types returned from Prophecy workflows like prophesize(), willExtend(), and reveal(), so your revealed doubles are understood as the mocked class. | 111 | 112 | 30 | 510K | 3 | 29.5 | 60.4 | MIT | 1 month ago | |
| justinrainbow/json-schema | Validate JSON data against JSON Schema in PHP. Supports draft-3, draft-4, draft-6, and draft-7 with $ref resolution and detailed validation errors. Install via Composer and validate decoded JSON objects against local or remote schemas. | 3,627 | 3,676 | 369 | 5M | 4 | 60.2 | 52.6 | MIT | 6 days ago | |
| laminas/laminas-mvc | Laminas MVC is a modular, event-driven MVC framework for PHP applications. It provides routing, controllers, view integration, dependency injection, and configuration management, helping you build scalable, maintainable web apps and APIs on top of Laminas components. | 172 | 174 | 61 | 527K | 24 | 34.5 | 70.1 | BSD-3-Clause | 1 year ago | |
| phpbench/phpbench | PHPBench is a PHP benchmark runner (like PHPUnit for performance). Run benchmarks with revolutions and iterations in isolated processes, track time and memory, generate customizable reports (console/CSV/HTML), store results, compare baselines, and detect regressions. | 1,990 | 1,999 | 132 | 455K | 29 | 53.6 | 53.3 | MIT | 2 weeks ago | |
| phperf/phpunit | phperf/phpunit is a lightweight PHPUnit extension aimed at profiling and performance measurement during test runs. Add simple hooks to capture timing and resource usage so you can spot slow tests and track performance regressions over time. | 0 | 0 | 0 | 68 | 0 | 20.9 | 29.9 | NOASSERTION | 3 years ago | |
| phpro/grumphp | GrumPHP helps you enforce code quality on every git commit. Configure tasks like PHPStan, PHPUnit, PHPCS, and more to run as pre-commit hooks, failing fast on issues so your team keeps a consistent, clean, and build-ready codebase. | 4,280 | 4,287 | 447 | 340K | 6 | 65.6 | 33.7 | MIT | 2 months ago | |
| phpspec/phpspec | phpspec is a behavior-driven development tool for PHP that helps you design and specify your code through examples. Write specifications, run them to drive implementation, get fast feedback, and keep your codebase clean with focused, readable specs. | 1,901 | 1,945 | 287 | 271K | 134 | 67.1 | 65.2 | NOASSERTION | 2 months ago | |
| phpspec/prophecy-phpunit | Integrates the Prophecy mocking library with PHPUnit for simpler, cleaner test doubles. Install via Composer and use the ProphecyTrait to call prophesize() inside your TestCase, set method predictions/returns, and reveal mocks for injection. | 192 | 193 | 42 | 1M | 1 | 25.5 | 63.4 | MIT | 1 month ago | |
| phpunitgoodpractices/traits | 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 | 2 | 15K | 3 | 12.6 | 46.6 | MIT | 3 years ago | |
| zendframework/zend-hydrator | Zend Hydrator provides strategies and tools to extract data from objects and hydrate objects from arrays in PHP. Supports naming strategies, custom hydrators, and flexible configuration, useful for forms, APIs, and domain model mapping. | 155 | 164 | 39 | 77K | 3 | 13.4 | 44.2 | BSD-3-Clause | 6 years ago |
How can I help you explore Laravel packages today?