for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Arcanedev\Gravatar\Concerns;
/**
* Trait HashEmail
*
* @author ARCANEDEV <[email protected]>
*/
trait HashEmail
{
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
* Get a hashed email.
* @param string $email
* @return string
public static function hashEmail(string $email): string
return hash('md5', strtolower(trim($email)));
}