{"library":"uglify-php","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"1.0.7","tags":["javascript","php","uglify","minifier","minify","obfuscator","encoder","protector","minimize"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install uglify-php","imports":["const UglifyPHP = require('uglify-php');","UglifyPHP.minify(pathOrCode, options).then(source => ...);","UglifyPHP.minify(...).catch(err => console.error(err));"]},{"cmd":"yarn add uglify-php","imports":[]},{"cmd":"pnpm add uglify-php","imports":[]}],"homepage":"https://github.com/flavior121/uglify-php#readme","github":"https://github.com/flavior121/uglify-php","docs":null,"changelog":null,"pypi":null,"npm":"uglify-php","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}