UglifyPHP
JSON →UglifyPHP is a JavaScript minifier and simple obfuscator for PHP files. It uses a unique ID based on current time to replace variable names, allowing multiple minified files to coexist without variable overwriting. It correctly handles class methods and $this references, but does not modify function names or inject junk code for performance reasons. The package is NOT a security solution and should not be used for licensing or code protection. Current stable version is 1.0.7. It is a lightweight tool for basic PHP code minification and obfuscation, with options to exclude specific variables, remove whitespace, and remove comments. It runs in Node.js and outputs either a minified file or source code as a promise.
Resources
packageuglify-php ↗