https://github.com/robclancy/class-name-fix-utility
https://github.com/robclancy/class-name-fix-utility
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/robclancy/class-name-fix-utility
- Owner: robclancy
- Created: 2014-03-08T20:38:57.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-08T22:40:18.000Z (about 12 years ago)
- Last Synced: 2024-04-17T22:13:01.703Z (about 2 years ago)
- Language: PHP
- Homepage: http://bacon.sexy
- Size: 137 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Class Name Fix Utility
This is used to rename badly named classes. Comes with built in Laravel support to rename `Facade` to `Surrogate`.
### Good Code Makes Good Apps
**100% tested with TDD**
**phpmin usage to get maximum performance**
**can literally change thousands of class names without any performance issues at all**
## Installation
Add `"robclancy/class-name-fix-utility": "dev-master"` to your `composer.json` in the `require` block and do a `composer update`.
## Usage
Simply run `ClassNameFixUtility\Facade::fix($classFrom, $classTo)`.
## Laravel Usage
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.