Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mervick/php-aaencoder
AAEncoder/AADecoder for any JavaScript program to/from Japanese style emoticons
https://github.com/mervick/php-aaencoder
Last synced: 2 months ago
JSON representation
AAEncoder/AADecoder for any JavaScript program to/from Japanese style emoticons
- Host: GitHub
- URL: https://github.com/mervick/php-aaencoder
- Owner: mervick
- License: mit
- Created: 2015-11-20T17:51:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-30T21:40:26.000Z (almost 2 years ago)
- Last Synced: 2024-03-26T07:26:54.346Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 12.7 KB
- Stars: 39
- Watchers: 3
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-acg - aaencoder - Convert Javascript to kaomoji(顔文字). [日本語] (Programming)
README
[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://stand-with-ukraine.pp.ua/)
# PHP AAEncoder and AADecoder
`AAEncoder` - Encode any JavaScript program to [Japanese style emoticons](http://utf-8.jp/public/aaencode.html) (^\_^).
`AADecoder` - Decode encoded as aaencode JavaScript program. (゚Д゚) ['\_']## Installation via Composer
```sh
composer require "mervick/aaencoder"
```## Usage
```php
// 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