codeception/stub
Create lightweight test doubles for PHP with Codeception Stub. Quickly generate stubs and mocks, define method returns and expectations, and override behavior on the fly—ideal for unit tests that need fast, flexible objects without full implementations.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| binafy/laravel-stub | 0.84 | — | 100 | 100 | 8 | 5K | 0 | 21.0 | 27.3 | MIT | 1 month ago | |
| codeception/codeception | 0.81 | Codeception is a full-stack PHP testing framework for unit, functional, and acceptance tests. It unifies PHPUnit-style assertions with browser and API testing, offers modular helpers, and integrates with popular PHP frameworks to speed up reliable test automation. | 4,854 | 4,909 | 1,284 | 1M | 152 | 82.5 | 63.7 | MIT | 3 months ago | |
| mockery/mockery | 0.80 | Mockery is a flexible PHP mock object framework for unit testing with PHPUnit, PHPSpec, and more. It provides a readable DSL to define expectations and interactions, integrates cleanly with PHPUnit, and can be used alongside PHPUnit’s own mocking tools. | 10,722 | 10,807 | 463 | 9M | 105 | 67.9 | 61.9 | BSD-3-Clause | 2 years ago | |
| spatie/laravel-stubs | 0.79 | Opinionated Laravel stub templates from Spatie. Publish customized stubs for migrations, controllers, and models: no down() in migrations, controllers don’t extend a base, no guarded attributes, more return types, fewer docblocks. | 251 | 251 | 37 | 20K | 0 | 25.2 | 29.7 | MIT | 3 months ago | |
| rawilk/laravel-stubs | 0.79 | Opinionated Laravel stubs with strict types, fewer docblocks, unguarded models, controllers without a base class, migrations without down methods, and added return type hints. Publish via artisan and optionally keep stubs updated via composer hooks. | 1 | 1 | 0 | 143 | 0 | 23.5 | 30.1 | MIT | 2 weeks ago | |
| codeception/module-filesystem | 0.79 | Codeception Filesystem module provides helpers for working with files and directories in tests. Create, copy, move, delete, and assert files/folders, handle fixtures and temp paths, and verify filesystem state as part of Codeception scenarios. | 19 | 19 | 7 | 380K | 3 | 14.2 | 60.4 | MIT | 5 months ago | |
| codeception/module-rest | 0.78 | REST module for Codeception that simplifies testing REST/JSON APIs: send HTTP requests, set headers/auth, validate response codes, formats, and payloads, and assert JSON/XML content. Integrates with other Codeception modules for end-to-end API tests. | 59 | 59 | 29 | 572K | 15 | 25.9 | 66.3 | MIT | 5 months ago | |
| carlescliment/chained-stubs-bundle | 0.77 | — | 0 | 0 | 1 | 0 | 0 | 0.0 | — | — | — | |
| docteurklein/test-double-bundle | 0.77 | Symfony bundle to simplify creating test doubles. Replace services automatically with stubs or fakes via DI container tags, improving test isolation and speed (e.g., Behat). Access original implementations with .real for infrastructure tests. | 41 | 41 | 11 | 535 | 2 | 1.4 | 12.3 | — | 10 years ago | |
| codeception/aspect-mock | 0.77 | — | 790 | 790 | 134 | 19K | 40 | 27.4 | 34.4 | MIT | 4 years ago | |
| codeception/module-asserts | 0.72 | Codeception Asserts module adds rich assertion helpers for your tests, letting you use a wide set of PHPUnit-style assertions directly in Codeception suites. Ideal for unit, functional, and acceptance tests to keep checks readable and failures clear. | 85 | 86 | 10 | 1M | 0 | 16.3 | 60.7 | MIT | 5 months ago | |
| codeception/lib-asserts | 0.72 | 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. | 104 | 104 | 5 | 1M | 1 | 19.9 | 61.8 | MIT | 3 months ago | |
| jasonmccreary/laravel-test-assertions | 0.69 | Adds a trait of extra PHPUnit assertions for Laravel testing. Confirm controllers/actions and named routes use specific FormRequest validation or middleware, compare validation rules (subset or exact), check rule instances, and assert view data is explicitly null. | 352 | 352 | 36 | 117K | 2 | 25.6 | 39.5 | — | 2 months ago | |
| beyondcode/laravel-query-detector | 0.56 | Detect N+1 query issues in Laravel during development. Monitors database queries in real time and alerts you when repeated queries suggest missing eager loading, helping you optimize performance and reduce unnecessary database calls. | 2,052 | 2,059 | 145 | 192K | 4 | 39.2 | 32.2 | MIT | 2 months ago |
How can I help you explore Laravel packages today?