This is used to rename badly named classes. Comes with built in Laravel support to rename `Facade` to `Surrogate`.
robclancy/class-name-fix-utility is a Laravel package for this is used to rename badly named classes. comes with built in laravel support to rename `facade` to `surrogate`..
It currently has 11 GitHub stars and 4 downloads on Packagist.
Install it with composer require robclancy/class-name-fix-utility.
Discover more Laravel packages by robclancy
or browse all Laravel packages to compare alternatives.
Last updated
This is used to rename badly named classes. Comes with built in Laravel support to rename Facade to Surrogate.
100% tested with TDD
phpmin usage to get maximum performance
can literally change thousands of class names without any performance issues at all
Add "robclancy/class-name-fix-utility": "dev-master" to your composer.json in the require block and do a composer update.
Simply run ClassNameFixUtility\Facade::fix($classFrom, $classTo).
Add Gary\Controller to your app/config.php services array and Facade will be renamed to Surrogate. Now when you want to extend the Facade you can do it by a more appropriately named Surrogate. 100% backward compatable.