2017 © Pedro Peláez
 

library base-32

RFC 3548 and 4648 compliant base 32 encoder/decoder

image

sendinblue/base-32

RFC 3548 and 4648 compliant base 32 encoder/decoder

  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

sendinblue/base-32

RFC 3548 and 4648 compliant base 32 encoder/decoder., (*1)

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this library:, (*2)

$ composer require sendinblue/base-32 "~1"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*3)

Usage

This library provides a \SendinBlue\Base32 class which exposes a encode and decode method, that’s it!, (*4)

You can also set encode’s second argument $padding to false to avoid including any padding into the encoded string., (*5)

<?php

use SendinBlue\Base32;

echo
    Base32::encode('foobar'),           // MZXW6YTBOI======
    Base32::encode('foobar', false),    // MZXW6YTBOI
    Base32::decode('MZXW6YTBOI======'), // foobar
    Base32::decode('MZXW6YTBOI')        // foobar
;

Performance

This library has been profiled with blackfire against, (*6)

  • christian-riesen/base32
  • paragonie/constant_time_encoding
  • skleeschulte/base32
  • togos/base32
  • peterbodnar.com/base32
  • chillerlan/php-base32

and it outperformed them all both on time and memory., (*7)

The Versions

12/10 2017

dev-master

9999999-dev

RFC 3548 and 4648 compliant base 32 encoder/decoder

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

29/09 2017

1.0.0

1.0.0.0

RFC 3548 and 4648 compliant base 32 encoder/decoder

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires