2017 © Pedro Peláez
 

library mime-base64-urlsafe

PHP-version of URL safe base64 encoding/decoding

image

yowcow/mime-base64-urlsafe

PHP-version of URL safe base64 encoding/decoding

  • Monday, May 29, 2017
  • by yowcow
  • Repository
  • 1 Watchers
  • 4 Stars
  • 9,005 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 10 Versions
  • 12 % Grown

The README.md

Build Status, (*1)

NAME

MIME::Base64URLSafe - URL-safe Base64 Encoder/Decoder, (*2)

DESCRIPTION

PHP implementation of Perl module MIME::Base64::URLSafe., (*3)

SYNOPSIS

Encoding

use \MIME\Base64URLSafe;

$output = Base64URLSafe::urlsafe_b64encode('Original Message');
// "T3JpZ2luYWwgTWVzc2FnZQ"

Decoding

use \MIME\Base64URLSafe;

$input = Base64URLSafe::urlsafe_b64decode('T3JpZ2luYWwgTWVzc2FnZQ');
// "Original Message"

FUNCTIONS

urlsafe_b64encode($original_string)

Encode a string into base64 string., (*4)

urlsafe_b64decode($b64_string)

Decode a base64 string into string., (*5)

EXAMPLES

Deflate XML into query string:

$xml = '<hello>world</hello>';

$query_safe_data = Base64URLSafe::urlsafe_b64encode(gzdeflate($xml));

echo http_build_query(array('data' => $query_safe_data), '&amp;');

Inflate XML from query string:

$query_safe_data = $_GET['data'];

$xml = gzinflate(Base64URLSafe::urlsafe_b64decode($query_safe_data));

echo $xml;

The Versions

29/05 2017

dev-master

9999999-dev https://github.com/yowcow/php-mime-base64-urlsafe

PHP-version of URL safe base64 encoding/decoding

  Sources   Download

MIT

The Requires

  • php >=5.3.29

 

The Development Requires

by Avatar yowcow

mime url uri base64

29/05 2017

0.2.2

0.2.2.0 https://github.com/yowcow/php-mime-base64-urlsafe

PHP-version of URL safe base64 encoding/decoding

  Sources   Download

MIT

The Requires

  • php >=5.3.29

 

The Development Requires

by Avatar yowcow

mime url uri base64

29/05 2017

0.2.1

0.2.1.0 https://github.com/yowcow/php-mime-base64-urlsafe

PHP-version of URL safe base64 encoding/decoding

  Sources   Download

MIT

The Requires

  • php >=5.3.29

 

The Development Requires

by Avatar yowcow

mime url uri base64

29/05 2017

0.2.0

0.2.0.0 https://github.com/yowcow/php-mime-base64-urlsafe

PHP-version of URL safe base64 encoding/decoding

  Sources   Download

MIT

The Requires

  • php >=5.3.29

 

The Development Requires

by Avatar yowcow

mime url uri base64

03/01 2016

0.1.2

0.1.2.0 https://github.com/yowcow/php-mime-base64-urlsafe

PHP-version of URL safe base64 encoding/decoding

  Sources   Download

MIT

The Development Requires

by Avatar yowcow

mime url uri base64

14/11 2014

0.1.1

0.1.1.0 https://github.com/yowcow/php-mime-base64-urlsafe

PHP-version of URL safe base64 encoding/decoding

  Sources   Download

MIT

The Development Requires

by Avatar yowcow

mime url uri base64

11/11 2014

0.1.0

0.1.0.0 https://github.com/yowcow/php-mime-base64-urlsafe

PHP-version of URL safe base64 encoding/decoding

  Sources   Download

MIT

The Development Requires

by Avatar yowcow

mime url uri base64

07/11 2014

0.0.3

0.0.3.0 https://github.com/yowcow/php-mime-base64-urlsafe

PHP-version of URL safe base64 encoding/decoding

  Sources   Download

MIT

The Development Requires

by Avatar yowcow

mime url uri base64

07/11 2014

0.0.2

0.0.2.0 https://github.com/yowcow/php-mime-base64-urlsafe

PHP-version of URL safe base64 encoding/decoding

  Sources   Download

MIT

The Development Requires

by Avatar yowcow

mime url uri base64

07/11 2014

0.0.1

0.0.1.0 https://github.com/yowcow/php-mime-base64-urlsafe

PHP-version of URL safe base64 encoding/decoding

  Sources   Download

MIT

The Development Requires

by Avatar yowcow

mime url uri base64