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    
Last Updated Ratings Unique User Downloads Download Rankings
2013-11-08 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 267 All time: 7,563 This week: 423Up
Version License PHP version Categories
refactor 1.0GNU General Publi...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
Name: Eper Kalman <contact>
Classes: 10 packages by
Country: Serbia Serbia
Age: 44
All time rank: 7545 in Serbia Serbia
Week rank: 784 Down4 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,563
This week:423Up