PHP code example of eliasrosa / safevalue
1. Go to this page and download the library: Download eliasrosa/safevalue 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/ */
eliasrosa / safevalue example snippets
$id = 777555;
$foo = new SafeValue();
echo "http://seudominio.com/gerar-boleto?fatura=" . $foo->encode($id);
// return VGVzdDE=:fe8a68005c11318:65128ae4e56c186
$id = $_GET['fatura'];
$bar = new SafeValue();
echo $foo->decode($id);
// return 777555