A Simple wrapper for YakPro-po obfuscator for Laravel Framework. Due Accreditation : YakPro-po 🛩️
PHP version ^7.1|^8.0
Laravel Framework ^7.0|^8.0|^9.0|^10.0
pmdunggh/yakpro-po dev-master
nikic/php-parser ^4.0
composer require mmanda/laravel-obfs
If you get requirements compatabilities with your existing package just use .
composer require mmanda/laravel-obfs -W
NB : Publish configuration files if you skip this default obfuscation configuration will be used
Obfuscation configuratioin will be published at PROJECTROOTDIR/config/mObfs.php
and PROJECTROOTDIR/config/mObfs.cnf
php artisan vendor:publish --provider=Mmanda\LaravelObfs\Providers\ObfuscateServiceProvider
mObfs.cnf
Update the confguration as specified and your level of obfuscation desired.
Artisan Commands The package provides several Artisan commands to obfuscate PHP files within your Laravel project.
Obfuscate All PHP Files To obfuscate all PHP files in your Laravel project:
php artisan mObfuscate:all
Obfuscate Specific Directory To obfuscate PHP files in a specific directory:
php artisan mObfuscate:directory {directory}
Obfuscate Specific File To obfuscate a specific PHP file:
php artisan mObfuscate:file {somefile or dir/file}
Backup and Restore Backup You can create backups of obfuscated files with the --backup option:
php artisan mObfuscate:all --backup
Restore To restore a backed-up file or directory:
php artisan mObfuscate:restore {backup_file_name}
Work in progress !! Contributions are welcome! Please read the contribution guidelines before submitting a pull request.
This package is licensed under the MIT License. See the ,LICENSE file for more information.
Emmanuel Mmanda
Email: luneya17@gmail.com