Download the PHP package smhtet/laravel-obfuscator without Composer
On this page you can find all versions of the php package smhtet/laravel-obfuscator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smhtet/laravel-obfuscator
More information about smhtet/laravel-obfuscator
Files in smhtet/laravel-obfuscator
Package laravel-obfuscator
Short Description Reversible identifier obfuscation for Laravel projects (obfuscate locally, deobfuscate on trusted server with same key).
License MIT
Homepage https://github.com/passiongeekmm/laravel-obfuscator
Informations about the package laravel-obfuscator
Php Laravel Obfuscator (Composer package)
This package provides reversible PHP identifier obfuscation for Laravel projects.
Scope (what it actually obfuscates)
- Local variable names everywhere.
- Private members (methods/properties) and their
self/static/parentand$this->...references. - With
--aggressive, protected members too.
It does not rename public APIs/classes/interfaces/traits, because Laravel (container bindings, reflection, route/model conventions) will break.
Install (into a Laravel app)
Add it as a path repository (for local dev in this mono-repo):
Then:
Laravel auto-discovers the service provider. If you have discovery disabled, register:
Php\LaravelObfuscator\LaravelObfuscatorServiceProvider.
Use (Artisan)
Obfuscate (writes .php_obfuscation_key_hash):
Deobfuscate:
Options
--dry-run: show which files would be processed.--aggressive: also rename protected members (higher risk).--path=...repeatable: scan multiple directories.--include-vendor: off by default. Do not enable unless you know exactly what you're doing.
Use (vendor/bin CLI, no Laravel boot)
php-obfuscator
All versions of laravel-obfuscator with dependencies
nikic/php-parser Version ^5.0
illuminate/console Version ^10.0 || ^11.0 || ^12.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0