dg/bypass-finals
DG\BypassFinals lets you bypass PHP’s final classes and methods at runtime so you can mock, extend, or patch code that’s otherwise locked down—useful for testing legacy dependencies. Lightweight, Composer-ready, and works with popular test frameworks.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| graham-campbell/phpspec-skip-example-extension | 0.81 | PhpSpec extension that lets you skip spec examples via simple annotations. Add @require ClassOrInterface to skip all examples in a spec when a dependency isn’t available. Install with Composer and enable in phpspec.yml. | 0 | 0 | 0 | 279 | 0 | 0.9 | 33.8 | MIT | 4 years ago | |
| endroid/quality | 0.80 | Quality-related helper package by Endroid for PHP/Laravel apps, providing small utilities for enforcing or improving code/data quality in your project. Suitable as a lightweight dependency when you need simple quality checks or supporting components. | 3 | 3 | 1 | 76 | 0 | 0.0 | 18.0 | — | — | |
| pds/skeleton | 0.80 | PDS standard defining a common filesystem skeleton for PHP packages. Specifies required root directories (src, tests, docs, config, bin, public, resources) and key root files (README, LICENSE, CHANGELOG, CONTRIBUTING), plus validation/generation tools. | 2,420 | 2,420 | 164 | 4K | 5 | 20.1 | 8.3 | CC-BY-SA-4.0 | 9 years ago | |
| nunomaduro/mock-final-classes | 0.80 | Dev-only helper that automatically enables mocking of final classes and methods in PHP tests. Works with PHPUnit, Pest, and ParaTest by removing final keywords on the fly via dg/bypass-finals—install with Composer and it just works. | 114 | 113 | 5 | 39K | 0 | 1.1 | 35.0 | MIT | 3 years ago | |
| php-mock/php-mock-mockery | 0.78 | Integrates php-mock with Mockery to mock PHP built-in functions in tests. Create namespaced function mocks with PHPMockery::mock() and set expectations/returns, then call Mockery::close(). Supports only unqualified calls; define early if needed. | 39 | 39 | 5 | 71K | 2 | 1.2 | 55.3 | WTFPL | 1 year ago | |
| mockery/mockery | 0.77 | 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 | 465 | 9M | 105 | 68.0 | 61.9 | BSD-3-Clause | 2 years ago | |
| nette/php-generator | 0.54 | Generate PHP code via a fluent API: build classes, interfaces, functions, methods, properties, namespaces, and PHPDoc, then render to valid PHP. Handy for code generators, scaffolding tools, and runtime code output with strict formatting and escaping. | 2,252 | 2,282 | 147 | 3M | 1 | 38.9 | 48.0 | NOASSERTION | 3 months ago |
How can I help you explore Laravel packages today?