multihanded / overrider
The CLI utility for overriding classes from vendor by namespace.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:utility
Requires
- php: >=7.4
This package is auto-updated.
Last update: 2024-12-14 12:03:28 UTC
README
The utility is designed for convenient redefinition of classes from the vendor by copying them to the overriden directory in the root of the project and adding them to the classmap, which ensures the priority of such classes over their originals in the autoloader. If the overriden directory does not exist, the utility will create it.
Usage:
php vendor/bin/overrider --namespace="Foo\Bar\Baz" [-r, --recursive]
--namespace Required, accepts the namespace of a class that must already be registered with the autoloader.
-r, --recursive Optional, generates directories for the overridden class in accordance with the PSR-0.
Make sure you are running the utility from the project root, the composer.json file is available, and the overridden class is already registered in the autoloader.