PHP code example of corviz / br-gpdpl
1. Go to this page and download the library: Download corviz/br-gpdpl 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/ */
corviz / br-gpdpl example snippets
use Corviz\BrGpdpl\Anonymizer\GenericAnonymizer;
$text = 'my content';
$anonymizer = new GenericAnonymizer($text);
echo $anonymizer->anonymized(); //**********
use Corviz\BrGpdpl\Anonymizer\CreditCardNumberAnonymizer;
$cardNumber = '1234 5678 9012 3456';
$anonymizer = new CreditCardNumberAnonymizer($cardNumber);
echo $anonymizer->anonymized(); //1234 56** **** 3456