Download the PHP package icewind/patcher without Composer
On this page you can find all versions of the php package icewind/patcher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package patcher
Patcher
Replace build in php functions
Usage
Overwriting a method
Using the original method
Overwriting a class
API
patchMethod(string $method, callable $handler)
: Set the handler for a method- The handler will be called with the following three arguments
string $method
the name of the method being calledarray $arguments
the arguments the method was called withcallable $original
a closure which will call the overwriten method with the correct arguments and return the result
patchClass(string $method, string $replacement)
: Overwrite a class with a different one- Note, at the moment this only works with classes in the global namespace
whiteListDirectory(string $path)
: Add a directory to the white list for the auto patcherblackListDirectory(string $path)
: Add a directory to the black list for the auto patcherautoPatch()
: Enable auto patching for all files included from this point- Automatically apply the patch methods for any namespace defined
- Will only be applied for files within a whitelisted directory
All versions of patcher with dependencies
PHP Build Version
Package Version
Requires
icewind/interceptor Version
0.3.0
The package icewind/patcher contains the following files
Loading the files please wait ....