2017 © Pedro Peláez
 

library base65536

Base65536 encode/decode utility

image

phplang/base65536

Base65536 encode/decode utility

  • Sunday, June 25, 2017
  • by sgolemon
  • Repository
  • 0 Watchers
  • 10 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

base65536

Base65536 is a binary encoding optimised for UTF-32-encoded text and Twitter. This PHP composer package, phplang/base65536, is loosely based on qntm/base65536., (*1)

Usage

use \PhpLang\Base65536;

$buf = 'hello world';
$str = Base65536::encode($buf);
echo $str; // 6 codes points, '驨ꍬ啯𒁷ꍲᕤ'

var_dump($buf === Base65536::decode($str)); // bool(true)

Note

Per the spec, the default encoding used for input to decode() and output from encode() is CESU-8, a variant of UTF-8 which encodes split UTF-16 surrogate pairs. If you want true UTF-8 output, you must specify so using the second parameter to encode() and decode()., (*2)

License

MIT, to match the generous licensing of the original. :D, (*3)

The Versions

25/06 2017

dev-master

9999999-dev https://github.com/phplang/base65536

Base65536 encode/decode utility

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

base65536

25/06 2017

1.0.0

1.0.0.0 https://github.com/phplang/base65536

Base65536 encode/decode utility

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

base65536