Download the PHP package dflydev/base32-crockford without Composer
On this page you can find all versions of the php package dflydev/base32-crockford. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package base32-crockford
Base32 Crockford Encoder and Decoder
A Base32 Crockford implementation for PHP.
Example
use Dflydev\Base32\Crockford\Crockford;
$encodedValue = Crockford::encode('519571'); // FVCK
$decodedValue = Crockford::decode('FVCK'); // 519571
$encodedValue = Crockford::encodeWithChecksum('519571'); // FVCKH
$decodedValue = Crockford::decodeWithChecksum('FVCKH'); // 519571
By default, decoding will be lenient on the input values. This will allow for passing in the following:
$decodedValue = Crockford::decode('F-VCk'); // treated as: FVCK
$decodedValue = Crockford::decode('hEl1O'); // treated as: HE110
See the spec for the translation rules.
Decoding can be made strict by passing an optional second argument to the decode methods.
Crockford::decode('F-VCk', Crockford::NORMALIZE_ERRMODE_EXCEPTION);
Crockford::decode('hEl1O', Crockford::NORMALIZE_ERRMODE_EXCEPTION);
Requirements
- PHP 5.3+
License
MIT, see LICENSE.
Community
If you have questions or want to help out, join us in the #dflydev channel on irc.freenode.net.
Not Invented Here
This is a port of Encode::Base32::Crockford.
All versions of base32-crockford with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.2
The package dflydev/base32-crockford contains the following files
Loading the files please wait ....