A secure and lightweight PHP source code obfuscator designed to protect your scripts from being read, copied, or modified. It transforms your PHP code into a highly obfuscated version that is difficult to understand or reverse engineer — while remaining fully functional.
- 🔒 Multi-layered Obfuscation: Uses
str_rot13,gzdeflate, andbase64_encodeto secure your code. - 📁 Upload Interface: Easily upload any
.phpfile through a simple web form. - ⚙️ Automated Encoding: Instantly generates a new obfuscated version of your original file.
- ✅ Executable Output: The output is still a valid and working PHP file.
- 🖥️ Beginner-Friendly UI: Includes a clean and simple web interface for quick use.
php-advanced-obfuscator/ ├── core/ │ └── Obfuscator.php → Main class that handles encoding logic ├── public/ │ ├── index.php → Upload form │ ├── encode.php → Handles file upload and encoding │ ├── assets/style.css → Basic styling │ ├── uploads/ → Temporary uploaded files │ └── output/ → Obfuscated output files └── README.md
- Upload a PHP file via the form (
index.php). - The script reads the content and passes it through multiple obfuscation layers:
- First
str_rot13 - Then
gzdeflatecompression - Finally
base64_encodewith anotherstr_rot13
- First
- The result is wrapped in an
eval()statement and written to a new.phpfile. - You can download the encoded version from the provided link.
-
Clone or download this repository:
git clone https://github.com/caferkara/php-advanced-obfuscator.git
-
Place the project on a PHP-supported server (e.g., XAMPP, WAMP, or live server).
-
Open the browser and go to:
http://localhost/php-advanced-obfuscator/public/ -
Upload your PHP file and download the encoded result.
This tool is intended for educational and protection purposes only. It does not provide foolproof encryption and should not be used for hiding malicious code or violating any terms of service.
This project is open-source under the MIT License.