antecedent/patchwork
Patchwork is a PHP monkey-patching library for runtime function and method redefinition. Useful for legacy code and hard-to-test dependencies, it enables stubbing, mocking, and behavior overrides without changing source, ideal for testing and debugging.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sstalle/php7cc | 0.85 | — | 1,507 | 1,456 | 121 | 1K | 20 | 18.9 | 10.6 | MIT | 9 years ago | |
| php-mock/php-mock-integration | 0.85 | Integration layer for php-mock, making it easy to use PHP function mocks within popular test frameworks. Helps you stub built-in functions like time(), rand(), and file operations in specific namespaces, enabling reliable, isolated unit tests without touching global state. | 14 | 14 | 6 | 374K | 0 | 8.2 | 57.8 | WTFPL | 9 months ago | |
| php-mock/php-mock | 0.85 | Mock built-in PHP functions like time() or rand() in tests by leveraging PHP’s namespace fallback: define namespaced replacements for unqualified calls. Works in non-global namespaces; supports common test frameworks via integrations (e.g., PHPUnit). | 370 | 375 | 19 | 726K | 3 | 13.0 | 47.8 | WTFPL | 9 months ago | |
| sebastian/peek-and-poke | 0.84 | sebastian/peek-and-poke is a small PHP utility that uses reflection to peek at and poke into objects. It lets you read and write private and protected properties, making it handy for tests that need to inspect or set up object state without changing production code. | 36 | 34 | 8 | 117 | 1 | 0.3 | 6.0 | NOASSERTION | — | |
| aaix/laravel-patches | 0.84 | Laravel Patches adds a simple, command-based patching system for Laravel. Create one-off Artisan commands for data fixes and deployments, run them manually, and track executions in the database to prevent reruns. Delete patches when done. | 0 | 0 | 0 | 37 | 0 | 11.8 | 23.8 | MIT | 6 months ago | |
| webproject-xyz/php-cs-fixer-config | 0.84 | A shared PHP-CS-Fixer configuration from webproject-xyz that gives PHP projects a consistent, opinionated coding style out of the box. Install it via Composer and extend the preset in your .php-cs-fixer config to enforce uniform formatting and rules across your codebase. | 0 | 0 | 0 | 91 | 1 | 18.0 | 31.8 | — | 1 month ago | |
| spatie/7to5 | 0.84 | Abandoned. Converts PHP 7.0 code to PHP 5, useful when developing on PHP 7 but deploying to PHP 5. Provides a CLI to convert entire directories and rewrites features like anonymous classes, type hints, return types, and null coalescing. | 177 | 175 | 32 | 46 | 0 | 2.6 | 1.0 | MIT | 8 years ago | |
| nnjeim/respond | 0.84 | — | 5 | 5 | 1 | 6 | 0 | 0.7 | 4.2 | MIT | 5 years ago | |
| jsdecena/baserepo | 0.84 | A Laravel repository-pattern package that provides reusable base repository and contract classes for cleaner CRUD, query filtering, pagination, and model interaction. | 75 | 76 | 39 | 1K | 0 | 1.8 | 16.7 | MIT | 7 years ago | |
| nunomaduro/php-interminal | 0.84 | An interactive terminal for PHP by Nuno Maduro, making it easy to run and explore PHP code right from the command line. A lightweight, REPL-style workflow for quick experiments, debugging, and learning without leaving your shell. | 33 | 33 | 2 | 0 | 0 | 0.2 | — | — | — | |
| php-mock/php-mock-mockery | 0.84 | 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 | 78K | 2 | 1.9 | 45.4 | WTFPL | 1 year ago | |
| pedrotroller/php-cs-custom-fixer | 0.84 | Custom fixers for PHP-CS-Fixer. Adds rules like ordering Behat context step definition methods by annotation and method name, with options for detecting context classes. Install via Composer and register the fixers in your .php_cs(.dist) config. | 82 | 83 | 10 | 18K | 4 | 12.0 | 37.9 | — | 1 year ago | |
| open-southeners/extended-php | 0.84 | Extended PHP helpers for modern apps: adds convenient functions, utilities, and small enhancements that complement core PHP to reduce boilerplate and speed up everyday development. Lightweight, easy to drop into existing projects. | 0 | 0 | 0 | 286 | 0 | 7.2 | 34.0 | MIT | 1 year ago | |
| paysera/lib-php-cs-fixer-config | 0.84 | Shared PHP CS Fixer configuration from Paysera that enforces a consistent coding style across PHP projects. Install via Composer and extend the provided ruleset to standardize formatting and keep your codebase clean. | 10 | — | 20 | — | 3 | 15.1 | 2.6 | — | 4 months ago |
|
| contao/contao-rector | 0.84 | Automate Contao upgrades with Rector. This package provides ready-made Rector rules and configuration to refactor Contao projects for newer versions, helping you modernize code, remove deprecations, and apply consistent changes safely across your codebase. | 5 | 5 | 7 | 357 | 2 | 1.0 | 26.1 | — | — | |
| bmitch/churn-php | 0.84 | churn-php helps you spot PHP files that are likely refactoring candidates by analyzing Git commit churn and cyclomatic complexity, then ranking files with a combined score and presenting the results in an easy-to-read table. | 1,384 | 1,379 | 59 | 23K | 4 | 21.5 | 18.3 | MIT | 10 months ago | |
| reedware/laravel-modern-factories | 0.84 | Bring Laravel 8-style class-based model factories to legacy Laravel (5.1–7.x) apps. Write modern PHPUnit-friendly factories today to reduce upgrade pain later, without facades or service providers. Supports PHP 5.5–8.4. | 0 | 0 | 0 | 543 | 0 | 0.0 | 37.8 | MIT | — | |
| nunomaduro/essentials | 0.84 | — | 1,245 | 1,243 | 75 | 184K | 3 | 17.1 | 33.5 | MIT | 8 months ago | |
| stinger-soft/php-commons | 0.83 | Stinger Soft PHP Commons is a lightweight utility package offering shared helpers and common building blocks for PHP applications. Use it to reduce boilerplate and keep cross-project code consistent, making it a practical foundation for Laravel or plain PHP projects. | 0 | 0 | 0 | 45 | 0 | 0.0 | 23.0 | Apache-2.0 | — | |
| contributte/phpstan | 0.83 | Contributte PHPStan integration for Nette projects. Install via Composer and get a ready-to-use PHPStan setup tailored for Nette 3.3+ on PHP 8.2+, with docs and ongoing maintenance by the Contributte team. | 1 | 2 | 2 | 24K | 0 | 4.8 | 56.9 | MIT | 10 months ago |
How can I help you explore Laravel packages today?