lizongying/gua64

六十四卦编码,PHP实现。例如:“hello,世界”会编码为“䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇”。

v0.0.5 2024-04-15 18:13 UTC

This package is auto-updated.

Last update: 2024-09-15 18:59:47 UTC


README

六十四卦编码,PHP实现。例如:“hello,世界”会编码为“䷯䷬䷿䷶䷸䷬䷀䷌䷌䷎䷼䷲䷰䷳䷸䷘䷔䷭䷒〇”。

所有语言

安装

composer require lizongying/gua64 dev-main

测试

cd tests
php example.php

示例

<?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;