A regular expression to check an Email string.
Install the package via Composer:
composer require zero-to-prod/psr4-classname
use Zerotoprod\Psr4Classname\Classname;
Classname::generate('weird%characters*in^name', '.php'); // 'WeirdCharactersInName.php';