lizongying/gua64

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

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

This package is auto-updated.

Last update: 2024-05-15 18:22:52 UTC


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;