PHP code example of wobeto / email-blur
1. Go to this page and download the library: Download wobeto/email-blur 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/ */
wobeto / email-blur example snippets
obeto\EmailBlur\Blur;
$blur = new Blur('[email protected]');
$obscured = $blur->make();
var_dump($obscured); // exa***@***.com
obeto\EmailBlur\Blur;
$blur = new Blur('[email protected]');
$blur->setTotalMask(5);
$obscured = $blur->make();
var_dump($obscured); // exa*****@*****.com
obeto\EmailBlur\Blur;
$obscured = (new Blur('[email protected]'))
->setTotalMask(4)
->make();
var_dump($obscured); // exa****@****.com
obeto\EmailBlur\Blur;
$obscured = (new Blur('[email protected]'))
->showDomain()
->make();
var_dump($obscured); // exa***@test.com