PHP code example of jdwil / unify
1. Go to this page and download the library: Download jdwil/unify 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/ */
jdwil / unify example snippets
$x = Encoder::encode('foo'); // $x is 'Zm9v'
class Encoder
{
public static function encode($string)
{
return base64_encode($string);
}
}