Download the PHP package phil/email-address-bundle without Composer
On this page you can find all versions of the php package phil/email-address-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phil/email-address-bundle
More information about phil/email-address-bundle
Files in phil/email-address-bundle
Package email-address-bundle
Short Description Catches mistyped, disposable and undeliverable email addresses in forms, and turns bounces and complaints into suspend, unsubscribe or review decisions.
License MIT
Homepage https://ph-il.ca
Informations about the package email-address-bundle
phil/email-address-bundle
Accepts email addresses by a policy per site and per list, suggests the address meant in the browser, and turns bounces and complaints into decisions, in Symfony.
phil/email-address-bundle integrates phil/email-address and phil/bounce-parser with Symfony. The libraries alone
suit an application without Symfony.
- The constraint on the container. The library's
DeliverableEmailAddressgets the container's lists and resolver;AcceptedEmailAddressapplies the policy of the bundle, of the current site and of a list, laid over each other: mail server looked up or not, disposable domains, denied domains, the only domains accepted. - The email field.
EmailAddressTypesuggests the address meant when its domain is a slip of a known one —[email protected]— and warns about a role address such asinfo@, without refusing either: in the browser through a Stimulus controller and a live region, and without JavaScript as the field's help once the form is submitted. - The normalized form.
EmailAddressescompares two addresses, keys them by a fingerprint that does not give the address back, and tells a role address; it keeps the dots and the+tagof the person's address. - The bounce rules. A hard bounce suspends the address; soft bounces count up to a threshold within a window; an authenticated complaint unsubscribes, and one no authenticator vouches for goes to review. Each decision is a Symfony event, and can go on to Messenger with identifiers only.
- Three inputs. The mailer events of a provider's webhook, through Symfony's Webhook and RemoteEvent components;
a raw message piped by the mail server to a console command; the bounce mailbox, through the
BounceMailboxport.
Status
| Part | State |
|---|---|
PhilEmailAddressBundle and its configuration phil_email_address |
Implemented and tested |
DeliverableEmailAddress on the container, AcceptedEmailAddress and the policies per site and per list |
Implemented and tested |
EmailAddressType, the route phil_email_address_domains and the Stimulus controller |
Implemented and tested |
EmailAddresses: normalized form, fingerprint, role addresses |
Implemented and tested |
BounceRules, the event BounceDecided and BounceDecidedMessage |
Implemented and tested |
The webhook consumer and the command phil:email-address:read-bounce |
Implemented and tested |
The port BounceMailbox, its Maildir adapter and the command phil:email-address:poll-mailbox |
Implemented and tested |
| Reading an IMAP mailbox | Not in this bundle: fetchmail, getmail or the mail server's local delivery fills the Maildir; BounceMailbox leaves room for a separate IMAP package |
The Flex recipe, in recipe/0.1 |
Prepared |
Documentation
| Document | What it covers |
|---|---|
| Installation | Requirements, installing, the routes and the Stimulus controller. |
| Configuration | Every option, with an example: policies, DNS, suggestions, bounces. |
| Bounces | The bounce rules, their three inputs, the event and the message. |
| Extension points | The services to replace, the events to listen to, and when they are stable. |
| Testing | The bundle's tests, PHP and JavaScript. |
| Reference | Every class and service of the bundle. |
Quick start
Requirements
PHP 8.5 or later and Symfony 8.2 or later. The form field needs symfony/form, the commands symfony/console, the
webhook consumer symfony/remote-event, the forwarding of decisions symfony/messenger, and the route
symfony/routing; the bundle registers each part only when its package is installed.
Contributing
Contributions are welcome on the PHIL monorepo: read the contribution guide and the security policy explains, never in a public issue.
License
MIT, © Philippe Gamache, doing business as Le Gnome Archiviste; a Parler Haut Interagir Librement project. See LICENSE.
All versions of email-address-bundle with dependencies
ext-mbstring Version *
phil/bounce-parser Version ^0.1@dev
phil/email-address Version ^0.1@dev
psr/cache Version ^3.0
psr/clock Version ^1.0
psr/event-dispatcher Version ^1.0
symfony/cache-contracts Version ^3.6
symfony/clock Version ^8.2
symfony/config Version ^8.2
symfony/dependency-injection Version ^8.2
symfony/http-foundation Version ^8.2
symfony/service-contracts Version ^3.6
symfony/validator Version ^8.2