2017 © Pedro Peláez
 

library base91

image

plinker/base91

  • Thursday, May 10, 2018
  • by lcherone
  • Repository
  • 1 Watchers
  • 0 Stars
  • 600 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 4 % Grown

The README.md

PlinkerRPC - Base91

Base91 is an advanced method for encoding binary data as ASCII characters. It is similar to base64, but is more efficient and compact. The overhead produced by base91 depends on the input data. It amounts at most to 23% (versus 33% for base64) and can range down to 14%, which typically occurs on 0-byte blocks. This makes base91 very useful for transferring larger files over binary unsafe connections like e-mail or terminal lines., (*1)

This component was originally used as part of the core for encoding the encrypted payload, but is no longer used as to support the PHP extention version of the client., (*2)

Install

Require this package with composer using the following command:, (*3)

``` bash $ composer require plinker/base91, (*4)


## Client Creating a client instance is done as follows: <?php require 'vendor/autoload.php'; /** * Initialize plinker client. * * @param string $server - URL to server listener. * @param string $config - server secret, and/or a additional component data */ $client = new \Plinker\Core\Client( 'http://example.com/server.php', [ 'secret' => 'a secret password' ] ); // or using global function $client = plinker_client('http://example.com/server.php', 'a secret password'); ## Methods Once setup, you call the class though its namespace to its method. ### Encode Encode a string. **Call** ``` php $result = $client->base91->encode('encode this string');

Response ``` text toX<5+UCmUW6GFso^zZ2(.A, (*5)


### Decode Decode a string. **Call**

$result = $client->base91->decode('toX<5+UCmUW6GFso^zZ2(.A');, (*6)


**Response**

encode this string ```, (*7)

Testing

There are no tests setup for this component., (*8)

Contributing

Please see CONTRIBUTING for details., (*9)

Security

If you discover any security related issues, please contact me via https://cherone.co.uk instead of using the issue tracker., (*10)

Credits

Development Encouragement

If you use this project and make money from it or want to show your appreciation, please feel free to make a donation https://www.paypal.me/lcherone, thanks., (*11)

Sponsors

Get your company or name listed throughout the documentation and on each github repository, contact me at https://cherone.co.uk for further details., (*12)

License

The MIT License (MIT). Please see License File for more information., (*13)

See organisations page for additional components., (*14)

The Versions

10/05 2018
06/09 2015

v0.1

0.1.0.0

  Sources   Download

MIT