Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 336 Bytes

Use.md

File metadata and controls

15 lines (10 loc) · 336 Bytes

How to use

This library provides a simple class Base64Url with static methods encode and decode:

<?php

use Base64Url\Base64Url;

$message = "Hello World!";

$encoded = Base64Url::encode($message); //Result must be "SGVsbG8gV29ybGQh"
$decoded = Base64Url::decode($encoded); //Result must be "Hello World!"