lizongying / gua64
六十四卦编码,php实现。如:“hello,世界”会编码为“䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇”。
v0.0.5
2024-04-15 18:13 UTC
Requires
- php: >=5.6
README
六十四卦编码,php实现。 如:“hello,世界”会编码为“䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇”。
all language
install
composer require lizongying/gua64 dev-main
test
cd tests
php example.php
example
<?php
require_once 'vendor/autoload.php';
use Gua\Gua64;
$gua64 = new Gua64();
$encode = $gua64::encode('hello,世界');
echo $encode . PHP_EOL;
$decode = $gua64::decode('䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒☯');
echo $decode . PHP_EOL;