Since 2015: YAK Pro - Php Obfuscator

yakpro-po is a free open source php obfuscator, published under the MIT License,
that you can download from GitHub.

GitHub repository:
Please star it on GitHub...

Mini demo site:

What is Php Obfuscation?

When you have a php project you want to distribute, as php is a script interpretor, you distribute also all the sources of your software!

You may want, for any reason, that other people do not understand, modify, or adapt your software.

As your software must be understandable by the php runtime, but needs to be very difficult to understand by human people, obfuscation is a very good way to achieve this goal.

YAK Pro - Php Obfuscator Obfuscation Main Features:

  • Removes all comments, indentation, and generates a single line program file.
  • Obfuscates if, else, elseif, for, while, do while by replacing them with if goto statements.
  • Obfuscate string literals.
  • Scramble names for:
    • Variables.
    • Functions.
    • Constants.
    • Classes, Interfaces, Traits,
    • Properties.
    • Methods.
    • Namespaces.
    • Labels.
  • Shuffles Statements.
  • Recursivly obfuscates a project's directory.
  • Makefile like, timestamps based mechanism, to re-obfuscate only files that were changed since last obfuscation.
  • Many configuration options that lets you have full control of what is obfuscated within your project!

Why Yet Another Php Obfuscator?

I began testing some already existing php obfuscation tools, but I did'nt found one that whas fitting all my needs.
I wanted a simple command line tool, based on a highly customisable config file, that would be able to:

  • Be fast and re-obfuscates only files that were changed based on timestamps of files.
  • Preserve some files and/or directories from obfuscation.
  • Do not include in the obfuscated target, some files/directories that are present on the source project.
  • Accept lists of names and/or name prefixes to not obfuscate.

So I started to write this tool.

Table of Contents