patchwork

1 · · Jan. 9, 2024, 9:38 a.m.
patchwork Method redefinition (monkey-patching) functionality for PHP. Patchwork implements the redefinition (monkey-patching) of functions and methods in PHP. This includes both user-defined and internal callables, which can be functions, class methods, or instance methods. In addition, many function-like constructs, such as exit or include, are supported in an analogous way. Internally, Patchwork uses a stream wrapper on file://. In the case of user-defined functions and methods, it is used to...