Installation
Install Mail with Composer.
shell
composer require raxos/mailRequirements
- PHP 8.5 or newer.
The package has no required PHP extensions of its own.
Provider clients
Mail bundles the official client library for each provider, so you do not need to require them separately:
mailgun/mailgun-phpbacks the Mailgun provider.wildbit/postmark-phpbacks the Postmark provider.phpmailer/phpmailerbacks the SMTP provider.
Raxos dependencies
Mail builds on a few other Raxos packages, which Composer installs for you:
- raxos/foundation: provides the
isTesting()helper the providers use to short circuit sending during tests. - raxos/contract: defines the public interfaces,
MailerInterface,MailerExceptionInterfaceandEmailAddressExceptionInterface. - raxos/error: provides the base
Exceptionclass that every Mail exception extends.
Return to the Mail introduction.