wobeto / email-blur
A library to e-mail blur
Installs: 46 623
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires (Dev)
- phpunit/phpunit: ^9.5
README
To install via composer, run:
composer require wobeto/email-blur
Use with default mask:
<?php include 'vendor/autoload.php'; use Wobeto\EmailBlur\Blur; $blur = new Blur('example@test.com'); $obscured = $blur->make(); var_dump($obscured); // exa***@***.com
Use with total mask changed:
<?php include 'vendor/autoload.php'; use Wobeto\EmailBlur\Blur; $blur = new Blur('example@test.com'); $blur->setTotalMask(5); $obscured = $blur->make(); var_dump($obscured); // exa*****@*****.com
Use with chaining methods:
<?php include 'vendor/autoload.php'; use Wobeto\EmailBlur\Blur; $obscured = (new Blur('example@test.com')) ->setTotalMask(4) ->make(); var_dump($obscured); // exa****@****.com
Use with show domain option:
<?php include 'vendor/autoload.php'; use Wobeto\EmailBlur\Blur; $obscured = (new Blur('example@test.com')) ->showDomain() ->make(); var_dump($obscured); // exa***@test.com
Enjoy...