mervick/aaencoder

Encode/decode any JavaScript program to/from Japanese style emoticons

v1.1.0 2016-04-11 21:41 UTC

This package is not auto-updated.

Last update: 2024-11-19 05:34:04 UTC


README

Stand With Ukraine

PHP AAEncoder and AADecoder

AAEncoder - Encode any JavaScript program to Japanese style emoticons (^_^).
AADecoder - Decode encoded as aaencode JavaScript program. (゚Д゚) ['_']

Installation via Composer

composer require "mervick/aaencoder"

Usage

// 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'));

Requirements

PHP >= 5.4

License

MIT