PHP code example of honeycrisp / laravel-obfuscator
1. Go to this page and download the library: Download honeycrisp/laravel-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/ */
honeycrisp / laravel-obfuscator example snippets
'providers' => [
// ... other providers
Honeycrisp\LaravelObfuscator\LaravelObfuscatorServiceProvider::class,
],
use Honeycrisp\LaravelObfuscator\Services\ObfuscatorService;
class SomeController extends Controller
{
public function obfuscateCode(ObfuscatorService $obfuscator)
{
// Obfuscate a string
$obfuscated = $obfuscator->obfuscateString(' echo "Hello World";
use Obfuscator;
// Obfuscate a string
$obfuscated = Obfuscator::obfuscateString(' echo "Hello";