PHP Classes

PHP-Obfuscator: Obfuscate PHP scripts by removing comments

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 42%Total: 1,199 All time: 3,159 This week: 40Up
Version License PHP version Categories
php-obfuscator 1.5Free for non-comm...4.3Tools, Code Generation
Description 

Author

This class can be used to obfuscate PHP scripts by removing comments.

It uses the tokenizer extension to parse the PHP scripts.

The class removes the comments from the script tokens list and generates the obfuscated version of the script.

It can also generate alternative versions of the script that uncompress and decode the code using the base64 algorithm.

Picture of Anish Karim C
  Performance   Level  
Name: Anish Karim C <contact>
Classes: 5 packages by
Country: India India
Age: 42
All time rank: 81646 in India India
Week rank: 200 Up20 in India India Up

Details

/**Developer: Anish Karim C*[thecoderin@gmail.com]***** * * * ***FileFor: PHPCodeObfuscator[CLASS FILE]*************** * * * ***CreatedOn: 17th December 2009***************************** * * * ***Modified On: 25th April 2010 ******************************** * * * C * * * *************************************************************** * * * ***Details: CLASS is the core that make things work*********** * * * ***Suggestions and Comments are welcome****************** * * * */ //////////////////////////////////////////////////////VERSION DETAILS/////////////////////////////////////////////////////////////////////////// // Version Date Modified Changes Remarks //// //------------------------------------------------------------------------------------------------------------------------------------------//// // 0.11b 17th December 09 Created Initial Development. //// // 0.20b 25th April 10 Made Strong earlier obfhard to obfnorm //// // obfhard replaced with an recursive fn _obfhard //// //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// This package is a good tool for Obfuscating[cutting short and encode] your PHP scripts completely. PACKAGE FILE LISTING ********************* 1. index.html HTML FILE simple example how to run Obfuscation Class. 2. encoder.class.inc PHP Class File The core code in OOPS Class. Coded in PHP 3. backend.php PHP FILE PHP Backend for index.html, to manage the file. This package having an option for uploading a PHP file, and it will work with the content according to the mode, and outputs the file after desired operation is done. It is using base64 function and deflate compression functions for obfuscation. This package has three functioning modes. 1. uncomment, when we set the mode as uncomment, it will read the complete file and remove all kinds of PHP comments in it and output the script without any comment. 2. obfnorm, This is the basic obfuscation form. It removes the comments first and went through base64 encoding and deflate compression mechanism before giving the result as PHP script file. 3. obfhard, This is bit complex obfuscation system. It automatically choses a random number and recursively call obfnorm to generate hard to regenerate obfuscated code. IMPORTANT NOTICE ---------------- Obfuscated code is not human readable but it can read by the PHP interpreter without any additional info. This function can also used for encoding, but a brilliant coder can somehow able to know what are the original code. NOTICE --------- It only accepts pure php codes, if your PHP script embed with html tags please do not try to obfuscate. It will not give a workable solution. If you got stuck, or want to ask some doubts feel free to send an email to me: thecoderin at gmail dot com Enjoy... Anish Karim C. developer (c) Designed and Developed By: Anish karim C. Free for Use and Edit. But do remember me. Visit My blogs : thecoderinc.blogspot.com : ubutrix.blogspot.com

  Files folder image Files (4)  
File Role Description
Accessible without login Plain text file backend.php Example backend PHP Script
Accessible without login HTML file index.html Example Example Page 1
Plain text file encoder.class.inc Class Main Class
Accessible without login Plain text file README.txt Doc. ReadMe File

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,199
This week:0
All time:3,159
This week:40Up
 User Ratings  
 
 All time
Utility:56%StarStarStar
Consistency:43%StarStarStar
Documentation:50%StarStarStar
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:42%StarStarStar
Rank:3645