[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8158":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":18,"lastSyncTime":34,"discoverSource":35},8158,"EmailValidator","egulias\u002FEmailValidator","egulias","PHP Email address validator","",null,"PHP",11641,228,34,30,0,1,2,10,3,42.08,"MIT License",false,"4.x",true,[27,28,29,30],"email","emailvalidator","php","validator","2026-06-12 02:01:49","# EmailValidator\n\n[![Build Status](https:\u002F\u002Fgithub.com\u002Fegulias\u002FEmailValidator\u002Factions\u002Fworkflows\u002Ftests.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fegulias\u002FEmailValidator\u002Factions\u002Fworkflows\u002Ftests.yml)\n[![Quality Badge](https:\u002F\u002Fapp.codacy.com\u002Fproject\u002Fbadge\u002FGrade\u002F55d44898c7e44ebdb4e457523563ad63)](https:\u002F\u002Fapp.codacy.com\u002Fgh\u002Fegulias\u002FEmailValidator\u002Fdashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)\n[![Test Coverage](https:\u002F\u002Fapp.codacy.com\u002Fproject\u002Fbadge\u002FCoverage\u002F55d44898c7e44ebdb4e457523563ad63)](https:\u002F\u002Fapp.codacy.com\u002Fgh\u002Fegulias\u002FEmailValidator\u002Fdashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)\n![Latest Release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Fegulias\u002FEmailValidator)\n\nA library for validating emails against several RFC.\n\n## Supported RFCs\n\nThis library aims to support RFCs:\n\n* [5321](https:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc5321),\n* [5322](https:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc5322),\n* [6530](https:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc6530),\n* [6531](https:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc6531),\n* [6532](https:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc6532),\n* [1035](https:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc1035) \n\n## Supported versions\n\n| Version |  Released  | EOL | Only critical bug fixes | Full |\n|:-------:|:----------:|:---:|:-----------------------:|:----:|\n|**v4.x** |**2023\u002F01\u002F07** |  -  |            **X**        |**X** |\n|  v3.x   | 2020\u002F12\u002F29 | YES |                         |      |\n| v2.1.x  | 2016\u002F05\u002F16 | YES |                         |      |\n|  v1.2   | 2013\u002F19\u002F05 | YES |                         |      |\n\n## Requirements\n\n* PHP 8.1\n* [Composer](https:\u002F\u002Fgetcomposer.org) is required for installation\n* [Spoofchecking](\u002Fsrc\u002FValidation\u002FExtra\u002FSpoofCheckValidation.php) and\n[DNSCheckValidation](\u002Fsrc\u002FValidation\u002FDNSCheckValidation.php) validation\nrequires that your PHP system has the\n[PHP Internationalization Libraries](https:\u002F\u002Fphp.net\u002Fmanual\u002Fen\u002Fbook.intl.php)\n(also known as PHP Intl)\n\n**Note**: `PHP version upgrades will happen to accomodate to the pace of major\nframeworks. Minor versions bumps will go via minor versions of this library\n(i.e: PHP7.3 -> v3.x+1). Major versions will go with major versions\nof the library`\n\n## Installation\n\nRun the command below to install via Composer\n\n```shell\ncomposer require egulias\u002Femail-validator\n```\n\n## Getting Started\n\n`EmailValidator` requires you to decide which (or combination of them)\nvalidation\u002Fs strategy\u002Fies you'd like to follow for each\n[validation](#available-validations).\n\nA basic example with the RFC validation\n\n```php\n\u003C?php\n\nuse Egulias\\EmailValidator\\EmailValidator;\nuse Egulias\\EmailValidator\\Validation\\RFCValidation;\n\n$validator = new EmailValidator();\n$validator->isValid(\"example@example.com\", new RFCValidation()); \u002F\u002Ftrue\n```\n\n### Available validations\n\n1. [RFCValidation](\u002Fsrc\u002FValidation\u002FRFCValidation.php): Standard RFC-like email validation.\n2. [NoRFCWarningsValidation](\u002Fsrc\u002FValidation\u002FNoRFCWarningsValidation.php):\nRFC-like validation that will fail when warnings* are found.\n3. [DNSCheckValidation](\u002Fsrc\u002FValidation\u002FDNSCheckValidation.php):\nWill check if there are DNS records that signal that the server accepts emails. This does not entail that the email exists.\n4. [MultipleValidationWithAnd](\u002Fsrc\u002FValidation\u002FMultipleValidationWithAnd.php):\nIt is a validation that operates over other validations performing a logical and (&&) over the result of each validation.\n5. [MessageIDValidation](\u002Fsrc\u002FValidation\u002FMessageIDValidation.php):\nFollows [RFC2822 for message-id](https:\u002F\u002Ftools.ietf.org\u002Fhtml\u002Frfc2822#section-3.6.4) to validate that field, that has some differences in the domain part.\n6. [Your own validation](#how-to-extend): You can extend the library behaviour\nby implementing your own validations.\n\n*warnings: Warnings are deviations from the RFC that in a broader interpretation\nare accepted.\n\n```php\n\u003C?php\n\nuse Egulias\\EmailValidator\\EmailValidator;\nuse Egulias\\EmailValidator\\Validation\\DNSCheckValidation;\nuse Egulias\\EmailValidator\\Validation\\MultipleValidationWithAnd;\nuse Egulias\\EmailValidator\\Validation\\RFCValidation;\n\n$validator = new EmailValidator();\n$multipleValidations = new MultipleValidationWithAnd([\n    new RFCValidation(),\n    new DNSCheckValidation()\n]);\n\u002F\u002Fietf.org has MX records signaling a server with email capabilities\n$validator->isValid(\"example@ietf.org\", $multipleValidations); \u002F\u002Ftrue\n```\n\n#### Additional validations\n\nValidations not present in the RFCs\n\n1. [SpoofCheckValidation](\u002Fsrc\u002FValidation\u002FExtra\u002FSpoofCheckValidation.php): \nWill check for multi-utf-8 chars that can signal an erroneous email name.\n\n### How to extend\n\nIt's easy! You just need to implement\n[EmailValidation](\u002Fsrc\u002FValidation\u002FEmailValidation.php) and you can use your own\nvalidation.\n\n## Contributing\n\nPlease follow the [Contribution guide](CONTRIBUTING.md).\nIs short and simple and will help a lot.\n\n## Other Contributors\n\n(You can find current contributors\n[here](https:\u002F\u002Fgithub.com\u002Fegulias\u002FEmailValidator\u002Fgraphs\u002Fcontributors))\n\nAs this is a port from another library and work, here are other people related\nto the previous one:\n\n* Ricard Clau [@ricardclau](https:\u002F\u002Fgithub.com\u002Fricardclau):\nPerformance against PHP built-in filter_var (v2 and earlier)\n* Josepf Bielawski [@stloyd](https:\u002F\u002Fgithub.com\u002Fstloyd):\nFor its first re-work of Dominic's lib\n* Dominic Sayers [@dominicsayers](https:\u002F\u002Fgithub.com\u002Fdominicsayers):\nThe original `isemail` function\n\n## License\n\nReleased under the MIT License attached with this code.","EmailValidator 是一个用于验证电子邮件地址是否符合多个RFC标准的PHP库。它支持包括RFC 5321、5322、6530等在内的多种邮件相关规范，确保了电子邮件地址的有效性和格式正确性。此外，该库还提供了DNS检查和欺骗检测等高级验证功能，以进一步提高验证准确性。适用于需要对用户输入的电子邮件地址进行严格校验的各种Web应用和服务场景中，如注册表单、订阅服务或任何涉及电子邮件处理的功能模块。通过Composer可以方便地集成到项目中，为开发者提供了一个强大而灵活的电子邮件验证解决方案。","2026-06-11 03:16:31","top_language"]