brianfreytag/php-bijective
最新稳定版本:v1.0.1
Composer 安装命令:
composer require brianfreytag/php-bijective
包简介
Encodes any integer into a base(n) string
README 文档
README
Encodes any integer into a base(n) string using a defined alphabet.
Installation
The suggested installation method is via composer:
php composer.phar require brianfreytag/php-bijective:dev-master
Usage
After installing the Bijective library, simply create a new instance of the Bijective class, passing in a defined alphabet.
<?php use Bijective\BijectiveTranslator; $alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $bijective = new BijectiveTranslator($alphabet); $encoded = $bijective->encode(123); // Returns ct $decoded = $bijective->decode('ct'); // Returns 123
统计信息
- 总下载量: 96.72k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-06-03