Download the PHP package germania-kg/mailer without Composer
On this page you can find all versions of the php package germania-kg/mailer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download germania-kg/mailer
More information about germania-kg/mailer
Files in germania-kg/mailer
Package mailer
Short Description Pimple Service Provider for email and SwiftMailer services.
License MIT
Informations about the package mailer
Germania KG · Mailer
Pimple Service Provider for email and SwiftMailer services.
Installation
Registering
Configuration
The configuration is an array with typical mail configration fields, each of them empty.
You can retrieve the configuration from the Pimple container like this:
Configure on Instantiation
Pass a custom configuration to the MailerServiceProvider constructor. Register it to Pimple container as usual.
Configure at Runtime
Two ways:
- After registering the ServiceProvider to Pimple (i.e. extending the
Mailer.Config
service definition) - Before registering, pre-defining the configuration in a
Mailer.Config
service definition
After registering with Pimple
Before registering with Pimple
Usage
Setup MailerServiceProvider:
SwiftMailerCallable
SwiftMailer
See https://swiftmailer.symfony.com/docs/introduction.html
Development
Unit tests
Either copy phpunit.xml.dist
to phpunit.xml
and adapt to your needs, or leave as is. Run PhpUnit test or composer scripts like this:
All versions of mailer with dependencies
pimple/pimple Version ^3.0
swiftmailer/swiftmailer Version ^5.4|^6.0
germania-kg/swiftmailer-callable Version ^1.0
psr/log Version ^1.0