PHP code example of orclyx / email-address-anonymiser
1. Go to this page and download the library: Download orclyx/email-address-anonymiser 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/ */
orclyx / email-address-anonymiser example snippets
$anonymiser = new EmailAddressAnonymiser\Anonymiser();
// Becomes a***[email protected]
$out = $anonymiser->anonymise('[email protected]');
// Becomes n***y@b***o
$out = $anonymiser->anonymise('[email protected]');
cat emails.txt | php cli.php > emails.anon.txt