APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product. Learn more →
Top 23 PHP Testing Projects
-
-
AppSignal
Monitoring that respects your time & budget. APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product.
-
Project mention: Clean code didn't get less important in the AI age — it got more important | dev.to | 2026-09-13
For static analysis there's PHPStan for PHP and mypy for Python. For formatting, Prettier and gofmt are the cheapest guardrail there is, with zero excuse not to run one. For security, Semgrep covers the same principle at higher stakes.
-
Project mention: Copy-Pasting HTTP Fakes by Hand? Laravel Http Automock Can Do It For You | dev.to | 2026-03-10
Requires PHP 8.2+, Laravel 11+, and Pest Works only with Laravel's HTTP client.
-
Mockery
Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL).
Using Mockery::spy to Verify Closures
-
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
phoronix-test-suite
The Phoronix Test Suite open-source, cross-platform automated testing/benchmarking software.
Project mention: Cache Aware Scheduling Shows Nice Wins for AMD Zen 5 on PostgreSQL, Valkey | news.ycombinator.com | 2026-05-29 -
Project mention: I Curated 106 Software Design Resources and Ranked What Actually Matters | dev.to | 2026-02-12
CodelyTV/php-ddd-example — DDD + Hexagonal in PHP/Symfony. If you're a PHP developer, start here.
-
-
-
I've been there. And for a long time, I thought the answer was more tests. What I actually needed was better tests. That's exactly what mutation testing taught me, and after using Infection PHP in production projects through 2025 and into 2026, I can confidently say it changed how I think about test quality entirely.
-
-
-
-
VFS Stream
vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.
-
-
-
-
-
foundry
A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine. (by zenstruck)
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
PHP Testing discussion
PHP Testing related posts
-
Integrating Web Application Firewalls (WAF) with PHP Framework
-
How Mutation Testing Exposes the Truth (PHP 2026 Edition)
-
I built a WordPress plugin that generates llms.txt from your sitemap
-
Copy-Pasting HTTP Fakes by Hand? Laravel Http Automock Can Do It For You
-
Mocking HTTP Services in PHP with Phiremock
-
PHPUnit: Test Closures with Mockery::spy
-
Mock IteratorAggregate with Mockery to Fix foreach in Tests
-
A note from our sponsor - AppSignal
www.appsignal.com | 10 Oct 2026
Index
What are some of the best open-source Testing projects in PHP? This list will help you:
| # | Project | Stars |
|---|---|---|
| 1 | PHPUnit | 20,062 |
| 2 | PHPStan | 14,120 |
| 3 | Pest | 11,735 |
| 4 | Mockery | 10,723 |
| 5 | Prophecy | 8,466 |
| 6 | php-webdriver | 5,198 |
| 7 | Codeception | 4,858 |
| 8 | Behat | 3,974 |
| 9 | phoronix-test-suite | 3,151 |
| 10 | php-ddd-example | 3,144 |
| 11 | Alice | 2,539 |
| 12 | ParaTest | 2,511 |
| 13 | Infection | 2,250 |
| 14 | testbench | 2,242 |
| 15 | dusk | 1,946 |
| 16 | PHPSpec | 1,902 |
| 17 | VFS Stream | 1,440 |
| 18 | PHP Architecture Tester | 1,280 |
| 19 | Kahlan | 1,146 |
| 20 | arkitect | 935 |
| 21 | phpunit-watcher | 876 |
| 22 | foundry | 802 |
| 23 | AspectMock | 785 |