1. Go to this page and download the library: Download imiphp/imi-email-blacklist 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/ */
declare(strict_types=1);
namespace app\Module\Service;
use Imi\Email\BlackList\Validate\Annotation\EmailBlackList;
use Imi\Validate\Annotation\AutoValidation;
class TestService
{
/**
* @AutoValidation
*
* @EmailBlackList(name="email")
*/
public function testEmail(string $email): void
{
}
}