for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Magium\Util\EmailGenerator;
class Generator
{
public function generate($domain = 'example.com')
$rand = uniqid(openssl_random_pseudo_bytes(10));
$encoded = base64_encode($rand);
$username = preg_replace('/\W/', '', $encoded);
return $username . '@' . $domain;
}