Download the PHP package qiuqiux/base-convert without Composer
On this page you can find all versions of the php package qiuqiux/base-convert. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download qiuqiux/base-convert
More information about qiuqiux/base-convert
Files in qiuqiux/base-convert
Download qiuqiux/base-convert
More information about qiuqiux/base-convert
Files in qiuqiux/base-convert
Vendor qiuqiux
Package base-convert
Short Description Converted from Binary,Octal,Decimal,Hexadecimal,Base62 and etc
License MIT
Package base-convert
Short Description Converted from Binary,Octal,Decimal,Hexadecimal,Base62 and etc
License MIT
Keywords base62baseConvert
Please rate this library. Is it a good library?
Informations about the package base-convert
BaseConvert
Examples:
$cv = new \QiuQiuX\BaseConvert\BaseConvert(255, 10);
// base 62 chars by default.(0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz)
echo $cv->convertTo(8) , '<br/>'; // 377
echo $cv->convertTo(9) , '<br/>'; // 313
echo $cv->convertTo(10) , '<br/>'; // 255
echo $cv->convertTo(11) , '<br/>'; // 212
echo $cv->convertTo(16) , '<br/>'; // FF
echo $cv->convertTo(26) , '<br/>'; // 9L
$cv = new \QiuQiuX\BaseConvert\BaseConvert(255, 10, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', false);
echo $cv->convertTo(8) , '<br/>'; // DHH
echo $cv->convertTo(9) , '<br/>'; // DBD
echo $cv->convertTo(10) , '<br/>'; // CFF
echo $cv->convertTo(11) , '<br/>'; // CBC
echo $cv->convertTo(16) , '<br/>'; // PP
echo $cv->convertTo(26) , '<br/>'; // JV
echo \QiuQiuX\BaseConvert\BaseConvert::format2Decimal('CFF', 10, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', true), '<br/>'; // 255
$cv = new \QiuQiuX\BaseConvert\BaseConvert('CFF', 10, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', true);
echo $cv->convertTo(8) , '<br/>'; // DHH
echo $cv->convertTo(9) , '<br/>'; // DBD
echo $cv->convertTo(10) , '<br/>'; // CFF
echo $cv->convertTo(11) , '<br/>'; // CBC
echo $cv->convertTo(16) , '<br/>'; // PP
echo $cv->convertTo(26) , '<br/>'; // JV
All versions of base-convert with dependencies
PHP Build Version
Package Version
No informations.
The package qiuqiux/base-convert contains the following files
Loading the files please wait ....