Login   Register  
PHP Classes
elePHPant
Icontem

PHP Refactor: Refactor PHP replacing variables and functions

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-11-08 (9 months ago) RSS 2.0 feedNot enough user ratingsTotal: 247 This week: 2All time: 6,893 This week: 909Up
Version License PHP version Categories  
refactor 1.0GNU General Public Lice...5.0PHP 5, Utilities and Tools
Description Author  

This class can refactor PHP replacing variables, functions and class names in one or more PHP scripts.

It can parse scripts in a given directory to search and replace the names of given variables, functions and classes.

The refactored scripts are saved to another given directory.

Innovation Award  
PHP Programming Innovation award nominee
November 2013
Number 4


Prize: One downloadable e-book of choice by O'Reilly
Some times applications need to be refactored by changing the names of classes, functions and variables.

This class provides a solution to refactor PHP code by replacing names in given PHP files.

Manuel Lemos
Picture of Eper Kalman
Name: Eper Kalman <contact>
Classes: 10 packages by
Country: Serbia Serbia
Age: 38
All time rank: 7775 in Serbia Serbia
Week rank: 305 Up2 in Serbia Serbia Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imagein (1 file)
Files folder imageout (1 file)
Accessible without login Plain text file example.php Example example script
Plain text file replacer.class.php Class class main

  Files folder image Files  /  in  
File Role Description
  Accessible without login Plain text file testfile.php Aux. test file

  Files folder image Files  /  out  
File Role Description
  Accessible without login Plain text file empty.txt Aux. empty

 Version Control Unique User Downloads Download Rankings  
 0%Total:247All time:6,893
 This week:2This week:909Up