michaelcozzolino/php-redefinitions
PHP library for redefining existing functions and methods at runtime, making it easy to monkey-patch legacy code, stub third-party functions, or swap implementations in tests without editing the original source. Framework-agnostic and Composer-ready.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| antecedent/patchwork | 0.77 | 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. | 448 | 451 | 42 | 2M | 25 | 39.6 | 67.0 | MIT | 1 week ago | |
| mike42/escpos-php | 0.76 | A PHP driver implementing the ESC/POS protocol for thermal receipt printers. Generate and print receipts with formatting, cutting and barcodes over Ethernet, USB, serial, parallel or SMB, making it easy to add receipt printing to POS apps. | 2,800 | 2,818 | 880 | 161K | 524 | 67.1 | 54.1 | NOASSERTION | 4 months ago | |
| andreas-glaser/php-helpers | 0.75 | PHP 8.2+ helper toolkit offering ArrayHelper and other utilities for everyday tasks. Includes dot-notation get/set/unset, key/value lookups, insert/prepend/append, random/first/last helpers, filtering empty values, implode/explode helpers, key casing conversion, and more. | 13 | 14 | 2 | 779 | 0 | 2.8 | 24.2 | MIT | 1 year ago | |
| leovie/php-method-modifier | 0.75 | A small PHP utility for programmatically modifying method modifiers, making it easy to adjust method visibility and related characteristics at runtime. Useful for metaprogramming, testing, and code-generation workflows. | 0 | 0 | 0 | 61 | 0 | 0.5 | 24.8 | BSD-3-Clause | 4 years ago | |
| michaelachrisco/readonly | 0.75 | — | 162 | 162 | 15 | 39K | 1 | 6.7 | 33.0 | GPL-3.0 | 11 months ago | |
| phpdocumentor/reflection | 0.75 | Static PHP code reflection library that parses one or more files (no execution) to build an object graph of your application's structure, including DocBlocks. Supports analyzing PHP versions from 5.2 up to your installed PHP version; useful for reflecting whole projects. | 124 | 126 | 60 | 907K | 8 | 26.3 | 60.9 | MIT | 5 months ago | |
| dave-liddament/phpstan-php-language-extensions | 0.75 | A PHPStan extension that adds support for extra PHP language features and type declarations, widening static analysis coverage so PHPStan understands more of your code. Helps catch bugs earlier and reduces false positives in Laravel and PHP projects. | 44 | 45 | 4 | 25K | 0 | 1.7 | 38.4 | MIT | 11 months ago | |
| shargin/utils | 0.75 | shargin/utils is a lightweight Laravel/PHP utility package offering reusable helper functions and convenience classes that reduce boilerplate, simplify everyday development tasks, and help keep application code cleaner, more consistent, and easier to maintain across projects. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | Unlicense | 6 years ago | |
| phpgt/propfunc | 0.75 | A small PHP library that uses magic __get/__set methods to expose getters and setters as normal properties via the MagicProp trait, enabling live and read-only computed properties for DOM-style implementations. Note: PHP 8.4 property hooks may soon make it obsolete. | 1 | 1 | 0 | 266K | 0 | 19.8 | 64.2 | — | 1 month ago | |
| ohdearapp/ohdear-php-sdk | 0.75 | Official PHP SDK for the Oh Dear API, built on Saloon v4. Manage monitors, retrieve user info, and handle API responses with typed DTOs. Supports API token authentication, configurable timeouts, and clear validation and error exceptions. Simplifies integrating Oh Dear monitoring into PHP application... | 73 | 74 | 17 | 114K | 0 | 18.7 | 47.1 | MIT | 7 months ago | |
| juststeveking/php-sdk | 0.75 | A framework-agnostic PHP SDK that provides a clean, lightweight foundation for building and consuming API clients. It simplifies request handling and response structure for PHP and Laravel projects, making integrations easier to build and reuse. | 215 | 217 | 13 | 119 | 0 | 1.8 | 2.7 | MIT | 2 years ago | |
| php-di/php-di | 0.75 | PHP-DI is a practical, powerful, framework-agnostic dependency injection container for PHP. It helps manage services and wiring with autowiring and flexible configuration, making applications easier to build, test, and maintain across any framework. | 2,772 | 2,855 | 320 | 4M | 56 | 49.2 | 64.3 | MIT | 1 year ago | |
| phpdocumentor/phpdocumentor | 0.75 | phpDocumentor is the de-facto documentation tool for PHP, generating complete API docs from your source code and DocBlocks, with UML diagrams plus Markdown and RestructuredText support to keep docs and code in sync. | 4,349 | 4,421 | 646 | 14K | 139 | 76.5 | 37.5 | MIT | 5 months ago | |
| dave-liddament/php-language-extensions | 0.75 | PHP Language Extensions adds attributes for immutable classes, pure functions, read-only properties, and named parameters, with PHPStan rules to enforce them. Bring stronger safety and clearer APIs to PHP without waiting for new syntax. | 196 | 196 | 5 | 27K | 3 | 3.1 | 30.6 | MIT | 11 months ago | |
| php-standard-library/php-standard-library | 0.75 | A standard library for PHP 8.4+ inspired by hhvm/hsl, offering consistent, well-typed APIs for async, collections, networking, I/O, cryptography, and terminal UI, replacing PHP primitives with safer, async-ready alternatives that error predictably. | 1,569 | 1,562 | 94 | 305K | 22 | 47.5 | 46.5 | MIT | 1 week ago | |
| nunomaduro/phpinsights | 0.75 | PHP Insights analyzes your PHP code quality, coding style, architecture, and complexity straight from the terminal. Works out of the box with Laravel, Symfony, Yii, Magento, and more, with built-in checks that keep code reliable and loosely coupled. | 5,647 | 5,650 | 300 | 403K | 68 | 75.7 | 56.6 | MIT | 1 month ago | |
| christian-riesen/base32 | 0.75 | A strict RFC 4648 Base32 encoder and decoder for PHP, with support for the extended hex alphabet. Decoding rejects malformed input, and the package includes test vectors and unit tests. | 134 | 135 | 30 | 1M | 0 | 19.5 | 60.6 | MIT | 3 months ago | |
| phpstan/phpstan | 0.75 | PHPStan is a PHP static analysis tool that finds bugs in your code without running it. It catches whole classes of errors before tests are written, bringing compiled-language-style correctness checks to PHP projects. | 14,147 | 14,221 | 972 | 19M | 1,056 | 94.9 | 77.1 | MIT | 3 days ago | |
| mike42/gfx-php | 0.74 | Pure PHP graphics library for reading, writing and processing raster images (PNG, GIF, BMP, Netpbm) without Gd or Imagick. Supports scaling, cropping, format conversion and colorspace transforms, making image handling more portable. Requires PHP 7+ and zlib for PNG. | 28 | 29 | 5 | 139K | 4 | 18.2 | 58.3 | LGPL-2.1 | 4 months ago | |
| jakub-onderka/php-code-style | 0.74 | A PHP coding style toolkit for consistent formatting and style enforcement across projects. Helps standardize code layout and conventions, making reviews easier and reducing style-related noise in diffs for teams and CI pipelines. | 0 | 0 | 1 | 28 | 0 | 0.4 | 20.2 | — | 12 years ago |
How can I help you explore Laravel packages today?