PHP code example of mervick / aaencoder
1. Go to this page and download the library: Download mervick/aaencoder 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/ */
mervick / aaencoder example snippets
// aaencode:
echo AAEncoder::encode(file_get_contents('/path/to/file.js'));
// Also, you can customize encoding level, may be >= 0, default 0.
// Be careful, the greater the level of encryption the larger output file.
// It is not recommended to use more than 3
echo AAEncoder::encode(file_get_contents('/path/to/file.js'), 2);
// aadecode:
echo AADecoder::decode(file_get_contents('/path/to/encoded.js'));