{"id":15657311,"url":"https://github.com/unicodeveloper/laravel-email-validator","last_synced_at":"2025-08-22T11:04:58.921Z","repository":{"id":57075418,"uuid":"45337396","full_name":"unicodeveloper/laravel-email-validator","owner":"unicodeveloper","description":":email: :package: Validate email addresses on the fly in Laravel 5","archived":false,"fork":false,"pushed_at":"2016-01-12T04:40:26.000Z","size":17,"stargazers_count":23,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-02T11:38:02.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unicodeveloper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-01T11:16:26.000Z","updated_at":"2022-10-12T17:37:43.000Z","dependencies_parsed_at":"2022-08-24T14:40:32.888Z","dependency_job_id":null,"html_url":"https://github.com/unicodeveloper/laravel-email-validator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/unicodeveloper/laravel-email-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-email-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-email-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-email-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-email-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unicodeveloper","download_url":"https://codeload.github.com/unicodeveloper/laravel-email-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Flaravel-email-validator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271628166,"owners_count":24792821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T13:06:14.914Z","updated_at":"2025-08-22T11:04:58.890Z","avatar_url":"https://github.com/unicodeveloper.png","language":"PHP","readme":"# laravel-email-validator\n\n[![Latest Stable Version](https://poser.pugx.org/unicodeveloper/laravel-email-validator/v/stable.svg)](https://packagist.org/packages/unicodeveloper/laravel-email-validator)\n![](https://img.shields.io/badge/unicodeveloper-approved-brightgreen.svg)\n[![License](https://poser.pugx.org/unicodeveloper/laravel-email-validator/license.svg)](LICENSE.md)\n[![Build Status](https://img.shields.io/travis/unicodeveloper/laravel-email-validator.svg)](https://travis-ci.org/unicodeveloper/laravel-email-validator)\n[![Quality Score](https://img.shields.io/scrutinizer/g/unicodeveloper/laravel-email-validator.svg?style=flat-square)](https://scrutinizer-ci.com/g/unicodeveloper/laravel-email-validator)\n[![Total Downloads](https://img.shields.io/packagist/dt/unicodeveloper/laravel-email-validator.svg?style=flat-square)](https://packagist.org/packages/unicodeveloper/laravel-email-validator)\n\n\u003e Laravel 5 Package to help validate and verify your email addresses.\n\n**Note:** This depends on the paid service from http://quickemailverification.com/.\n\n## Install\n\n[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.\n\nVia Composer\n\n``` bash\n$ composer require unicodeveloper/laravel-email-validator\n```\n\nAnother alternative is to simply add the following line to the require block of your `composer.json` file.\n\n```\n\"unicodeveloper/laravel-email-validator\": \"1.0.*\"\n```\n\nThen run `composer install` or `composer update` to download it and have the autoloader updated.\n\nAdd this to your providers array in `config/app.php`\n\n```php\n\n// Laravel 5: config/app.php\n\n'providers' =\u003e [\n    ...\n    Unicodeveloper\\EmailValidator\\EmailValidatorServiceProvider::class,\n    ...\n];\n```\n\nThis package also comes with a facade\n\n```php\n\n// Laravel 5: config/app.php\n\n'aliases' =\u003e [\n    ...\n    'EmailValidator' =\u003e Unicodeveloper\\EmailValidator\\EmailValidatorFacade::class,\n    ...\n]\n```\n\nPublish the config file by running:\n\n```bash\nphp artisan vendor:publish\n```\n\nThe config file will now be located at `config/emailValidator.php`.\n\n## Configuration\n\nThis is the `emailValidator.php` file in the `config` directory. Go to [quickemailverification.com](http://quickemailverification.com/), sign up, get an api Key and insert here\n\n```php\n/**\n *  Config file that a user/developer can insert quickemailverficationservice api key\n */\nreturn [\n    'apiKey' =\u003e ''\n];\n```\n\n## Usage\nWith the Facades, all you need to do in your application is something like so:\n\n```php\n\n print_r(EmailValidator::verify('kkkkk@example.com')-\u003eisValid());\n // returns Array ( [0] =\u003e [1] =\u003e Could not get MX records for domain )\n \n print_r(EmailValidator::verify('prosperotemuyiwa@gmail.com')-\u003eisValid());\n // returns Array ( [0] =\u003e 1 [1] =\u003e SMTP server accepted email address )\n\n var_dump( EmailValidator::verify('prosperotemuyiwa@gmail.com')-\u003eisValid()[0]); \n // returns bool(true)\n \n var_dump( EmailValidator::verify('kkkkk@example.com')-\u003eisValid()[0]); \n // returns bool(false)\n \n \n if( EmailValidator::verify('kkkkk@example.com')-\u003eisValid()[0] ){\n   ......\n }\n\n // returns a true/false if the email address is valid or not\n```\n\n### Other Methods Available\n```php\n/**\n * Returns true or false if the email address uses a disposable domain\n * @return boolean\n */\nEmailValidator::verify('kkkkk@example.com')-\u003eisDisposable()\n```\n\n```php\n/**\n * Returns true or false if the API request was successful\n * @return boolean\n */\nEmailValidator::verify('kkkkk@example.com')-\u003eapiRequestStatus()\n```\n\n```php\n/**\n * Get the domain of the provided email address\n * @return string\n */\nEmailValidator::verify('kkkkk@example.com')-\u003egetDomainName()\n```\n\n```php\n/**\n * Get the local part of an email address\n * Example: kkkkk@example.com returns kkkkk\n * @return string\n */\nEmailValidator::verify('kkkkk@example.com')-\u003egetUser()\n```\n\n```php\n/**\n * Gets a normalized version of the email address\n * Example: KkkKk@example.com returns kkkkk@gmail.com\n * @return string\n */\nEmailValidator::verify('kkkkk@example.com')-\u003egetEmailAddress()\n```\n\n```php\n/**\n * Returns true if the domain appears to accept all emails delivered to that domain\n * @return boolean\n */\nEmailValidator::verify('kkkkk@example.com')-\u003eacceptEmailsDeliveredToDomain()\n```\n\n```php\n/**\n * Returns true or false if email address is a role address\n * Example manager@example.com , ceo@example.com will return true\n * @return boolean\n */\nEmailValidator::verify('kkkkk@example.com')-\u003eisRole()\n```\n\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Todo: Testing\n## Todo: Verify a list of emails\n\nYou can run the tests with:\n\n```bash\nvendor/bin/phpunit run\n```\n\nAlternatively, you can run the tests like so:\n\n```bash\ncomposer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## How can I thank you?\n\nWhy not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!\n\nDon't forget to [follow me on twitter](https://twitter.com/unicodeveloper)!\n\nThanks!\nProsper Otemuyiwa.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Flaravel-email-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funicodeveloper%2Flaravel-email-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Flaravel-email-validator/lists"}