PHP code example of lizongying / gua64
1. Go to this page and download the library: Download lizongying/gua64 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/ */
lizongying / gua64 example snippets
cd tests
php example.php
Gua\Gua64;
$gua64 = new Gua64();
$encode = $gua64::encode('hello,世界');
echo $encode . PHP_EOL;
$decode = $gua64::decode('䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒☯');
echo $decode . PHP_EOL;