{"id":15063297,"url":"https://github.com/mailboxvalidator/mailboxvalidator-bundle","last_synced_at":"2025-07-11T14:32:21.917Z","repository":{"id":62522706,"uuid":"224755358","full_name":"MailboxValidator/mailboxvalidator-bundle","owner":"MailboxValidator","description":"MailboxValidator Symfony bundle enable users to block disposal email, detect free email and validate if an email is valid","archived":false,"fork":false,"pushed_at":"2025-06-20T02:38:06.000Z","size":25,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-20T03:34:09.921Z","etag":null,"topics":["email-checker","email-validation","email-validator","email-verification","mailboxvalidator-api","mailboxvalidator-bundle","symfony","symfony-bundle"],"latest_commit_sha":null,"homepage":"https://www.mailboxvalidator.com/","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/MailboxValidator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-11-29T01:34:36.000Z","updated_at":"2025-06-20T02:37:42.000Z","dependencies_parsed_at":"2024-11-21T12:47:59.577Z","dependency_job_id":"54c1e7b6-ad33-4e69-b3cc-933d8eb28d55","html_url":"https://github.com/MailboxValidator/mailboxvalidator-bundle","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"3b9782b312dbc33b493ea6fbb33a19f7e1de9ec2"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/MailboxValidator/mailboxvalidator-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MailboxValidator%2Fmailboxvalidator-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MailboxValidator%2Fmailboxvalidator-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MailboxValidator%2Fmailboxvalidator-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MailboxValidator%2Fmailboxvalidator-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MailboxValidator","download_url":"https://codeload.github.com/MailboxValidator/mailboxvalidator-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MailboxValidator%2Fmailboxvalidator-bundle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264833280,"owners_count":23670617,"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","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":["email-checker","email-validation","email-validator","email-verification","mailboxvalidator-api","mailboxvalidator-bundle","symfony","symfony-bundle"],"created_at":"2024-09-24T23:54:43.317Z","updated_at":"2025-07-11T14:32:21.907Z","avatar_url":"https://github.com/MailboxValidator.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MailboxValidator Symfony Email Validation Bundle\n\nMailboxValidator Symfony Email Validation Bundle enables user to easily validate if an email address is valid, a type of disposable email or free email.\n\nThis bundle can be useful in many types of projects, for example\n\n - to validate an user's email during sign up\n - to clean your mailing list prior to email sending\n - to perform fraud check\n - and so on\n\nNote: This bundle only support Symfony 4.3 and onwards.\n\n## Installation\n\nWe recommend the installation via Composer. Open the terminal, navigate to your project root and run the following commands:\n\n```console\n$ composer require mailboxvalidator/mailboxvalidator-bundle\n```\n\n## Dependencies\n\nAn API key is required for this module to function.\n\n1. Go to [https://www.mailboxvalidator.com](https://www.mailboxvalidator.com/plans#api) to sign up for FREE API plan if you do not have an API key.\n\n2. (If you are at Symfony 4) After obtained your API key, load a ``.env`` file in your PHP application via ``Dotenv::load()``.\n\n```php\nuse Symfony\\Component\\Dotenv\\Dotenv;\n\n$dotenv = new Dotenv();\n$dotenv-\u003eload(__DIR__.'/.env'); //Your .env file path\n```\n\n3. Open your ``.env`` file and add the following line:\n\n```\nMBV_API_KEY=PASTE_YOUR_API_KEY_HERE\n```\n\nNotes: You need to install the MailboxValidator PHP Module in order to use this bundle. You can visit https://github.com/MailboxValidator/mailboxvalidator-php for the source codes.\n\n## Usage\n\nBefore using the validator, be sure to add the bundle into the `config/bundles.php` file:\n\n```PHP\n// config/bundles.php\nreturn [\n    ...\n    MailboxValidatorBundle\\MailboxValidatorBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\nThe validators available to validate the email are: single, free and disposable. Each validator validate the email by using MailboxValidator API. For more information, you can visit [Single Validation API](https://www.mailboxvalidator.com/api-single-validation), [Disposable Email API](https://www.mailboxvalidator.com/api-email-disposable) and [Free Email API](https://www.mailboxvalidator.com/api-email-free). \n\n1. To use any one of three validators or use all of the validators, include the following lines in any form controller that handle the validation:\n\n```php\nuse MailboxValidatorBundle\\Validator\\MBVSingle;\nuse MailboxValidatorBundle\\Validator\\MBVDisposable;\nuse MailboxValidatorBundle\\Validator\\MBVFree;\n```\n\n2. After that, add a new rule to your form field. For example, if you want to validate the disposable email, your rule will be like this:\n\n```php\n-\u003eadd('email', EmailType::class, [\n\t\t\t'constraints' =\u003e [\n\t\t\t\tnew MBVDisposable([\n\t\t\t\t\t//You can also custom a message yourself. For example,\n\t\t\t\t\t//'message' =\u003e 'This email is disposable. Please enter another email again.',\n\t\t\t\t\t]),\n\t\t\t\t],\n\t\t\t])\n```\n\n\n\n## Copyright\n\nCopyright (C) 2025 by MailboxValidator.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmailboxvalidator%2Fmailboxvalidator-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmailboxvalidator%2Fmailboxvalidator-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmailboxvalidator%2Fmailboxvalidator-bundle/lists"}