Script to rename variables, methods and class names of PHP files

Closed Posted 5 years ago Paid on delivery
Closed Paid on delivery

Looking for a programmer to create either a PHP or python script to randomly rename variables, methods and classes names of a given list of PHP files. The objective is to make the PHP code harder to understand, while maintaining its functionality of course; which means special and reserved names such as $this, self or magic methods shouldn't be renamed.

The script should scan the PHP files, compile a list of strings to rename, generate random replacements associated with the list, perform the replacement and save the result in just one combined PHP file. It'll also need to save the random replacements in a csv/text file.

Check: [login to view URL] (only this answer, not other answers within the thread). About half work it's already done.

Config variables of the script:

a) (array) List of paths of PHP files

b) (int) Length of the random replacements

c) (array) List of variables to exclude (any visibility)

d) (array) List of methods to exclude (any visibility)

e) (array) List of classes to exclude

f) (bool) Flag to enable/disable exclusion of public variables

g) (bool) Flag to enable/disable exclusion of public methods

h) (string) Path of the result file

i) (string) Path of the replacements csv/text file

Desired but not mandatory:

j) (string) Exclusion delimiter, for instance: /|* which translates to: /|* $important = 'this will not be renamed'; *|/

.- Other things to note:

a) PHP files don't have namespaces, only classes with private, protected and public variables and methods; statics as well

b) Do not suggest the use existent software

c) Test the code before delivering it, quality is preferred over delivery time

d) Include the term [PHP renaming] within your offer, so it proves you've read and understood the project.

e) No agencies

PHP Python

Project ID: #18210182

About the project

13 proposals Remote project Active 5 years ago

13 freelancers are bidding on average $166 for this job

royalwebraisers

[PHP renaming] Hi How are you.. ? As I read out the description. I am ready for the work with you. Need some details for the same task. Thanks Jitu

$246 USD in 4 days
(117 Reviews)
6.4
schoudhary1553

Hello Sir, I am the expert freelancer here. I am on the 6th position through out the world to deliver the quality job. I have deliver here more than 400 + projects with 100% client satisfaction. I have more than 5 More

$250 USD in 4 days
(54 Reviews)
6.1
DarkKnight2206

Hello! I am a python developer. I looked at your project and it seems interesting. I have all necessary skills required for this project. Ping me to discuss in detail.

$140 USD in 2 days
(25 Reviews)
5.1
DevelopmentFreak

Hi there! Namashkaram! I read the description. Interesting! TOP 10 REASONS Why you should work with me: 1. I Care! 2. I also lift up ideas whenever needed. 3. I have worked with a team of 12 -14 People on a More

$155 USD in 3 days
(12 Reviews)
4.3
dipta007

Being into coding and development for some time, I've already come across problems/requirements like these. So, a script to perform which is essentially refactoring of PHP source code should be easily and reliably han More

$100 USD in 3 days
(2 Reviews)
3.4
domaxy111

Dear Employer, We are ready to start your work right now. Me and my team is ready to complete your work with a quality work. I am capable to do this project. we have 6+ year experience in IT Industry. We have alread More

$220 USD in 3 days
(3 Reviews)
2.8
DavidnBurns

Hello, I'm David, I can provide you perfect work as you looking for . we can discuss more in chat . I will be waiting for your response . I have very great experience about your project , if you want discuss more More

$155 USD in 3 days
(0 Reviews)
0.0