PHP code example of jfcherng / php-aacodec
1. Go to this page and download the library: Download jfcherng/php-aacodec 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/ */
jfcherng / php-aacodec example snippets
use Jfcherng\AaCodec\Codec;
$encodingLevel = 0; // larger to get a longer encoded js code
$encoded = Codec::encode($jsCode, $encodingLevel);
file_put_contents('encoded.js', $encoded);
$decoded = Codec::decode($encoded);
file_put_contents('decoded.js', $decoded);
bash
$ composer