Skip to content

Repository files navigation

Base36

Latest Version on PackagistSoftware LicenseBuild StatusCoverage StatusQuality ScoreTotal Downloads

Base36 string encode and decode.

Installation

Via Composer

$ composer require odan/base36

Requirements

  • PHP 7.0+

Usage

useOdan\Encoding\Base36;
$str = "abc 1234";
// Encode$base36 = newBase36();
$enc = $base36->encode($str); // MFRGGIBRGIZTI====// Decodeecho$base36->decode($enc); // abc 1234

Without padding and only lowercase

$str = "abc 1234";
// Encode$enc = $base36->encode($str, false);
$enc = strtolower($enc); // mfrggibrgizti// Decodeecho$base36->decode(strtoupper($enc));

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Credits

  • Bryan Ruiz

License

The MIT License (MIT). Please see License File for more information.

About

Base36 string encode and decode

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages