PHP code example of aflorea4 / laravel-source-obfuscator
1. Go to this page and download the library: Download aflorea4/laravel-source-obfuscator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aflorea4 / laravel-source-obfuscator example snippets
// Define encryption key (use the key shown after obfuscation)
define('PHP_BOLT_KEY', 'your-encryption-key-here');
// Or load from environment
define('PHP_BOLT_KEY', env('PHPBOLT_KEY'));
// Rest of your Laravel bootstrap code...
'extension_name' => 'bolt', // Extension name to check
'encryption_key' => env('PHPBOLT_KEY', ''), // Leave empty to auto-generate
'key_length' => env('PHPBOLT_KEY_LENGTH', 6), // Key length if auto-generated
bash
# The bolt.so extension MUST be installed in production
sudo cp bolt.so $(php-config --extension-dir)/
echo "extension=bolt.so" | sudo tee /etc/php/8.2/mods-available/bolt.ini
sudo phpenmod bolt
sudo systemctl restart php8.2-fpm