PHP Classes

PHP Refactor: Refactor PHP replacing variables and functions

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 270 All time: 7,716 This week: 560Up
Version License PHP version Categories
refactor 1.0GNU General Publi...5.0PHP 5, Tools


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: 48
All time rank: 7525 in Serbia Serbia
Week rank: 286 Up3 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  
This week:0
All time:7,716
This week:560Up