PHP code example of timjmasters / php-base64url
1. Go to this page and download the library: Download timjmasters/php-base64url library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
timjmasters / php-base64url example snippets
// Don't forget your use statements!
use TimJMasters\Base64URL\Base64URL;
$encoded = Base64URL::encode("foo");
// $encoded = "Zm9v"
$decoded = Base64URL::decode("YmFy");
// $decoded = "bar"