PHP code example of jocic / encoders
1. Go to this page and download the library: Download jocic/encoders 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/ */
jocic / encoders example snippets
$encoder = new Jocic\Encoders\Base\Base16();
echo $encoder->encode("foo");
echo $encoder->decode("666F6F");
$encoder = new Jocic\Encoders\Base\Base32();
echo $encoder->encode("foo");
echo $encoder->decode("MZXW6===");
$encoder = new Jocic\Encoders\Base\Base64();
echo $encoder->encode("foo");
echo $encoder->decode("Zm9v");