Download the PHP package icanboogie/mailer without Composer
On this page you can find all versions of the php package icanboogie/mailer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download icanboogie/mailer
More information about icanboogie/mailer
Files in icanboogie/mailer
Package mailer
Short Description Handles emails generation and sending.
License BSD-3-Clause
Homepage http://icanboogie.org/
Informations about the package mailer
Mailer
Mailer is a library for PHP that is designed to handle emails generation and sending.
Acknowledgement
This package was inspired by the following softwares or articles:
Creating messages
Sending a message
Messages are sent by a deliverer through a Mailer instance.
The following example demonstrates how a mailer can be used to send emails using the default mail deliverer:
The following example demonstrates how a mailer can be used to send emails using the file deliverer:
ICanBoogie auto-config
The package supports the auto-config feature of the framework ICanBoogie and provides the following features:
- The lazy getter for the
ICanBoogie\Core::$mailer
property that returns a Mailer instance. - The
ICanBoogie\Core::mailer
method that sends a message using the mailer.
Before and after the message is sent
If sender
is defined in the mail()
options the following events are triggered:
- The
<class>:mail:before
event of class BeforeMailEvent is fired before the message is sent by the mailer. Third parties may use this event to alter the message or the mailer that will be used to send it. - The
<class>:mail
event of class MailEvent is fired after the message was sent by the mailer. Third parties may use this event to alter the result returned by the mailer.
Where <class>
is the class of the sender.
Requirements
The package requires PHP 5.4 or later.
Installation
The recommended way to install this package is through Composer:
Cloning the repository
The package is available on GitHub, its repository can be cloned with the following command line:
$ git clone https://github.com/ICanBoogie/Mailer.git
Documentation
The documentation can be generated for the package and its dependencies with the make doc
command. The documentation is generated in the docs
directory. ApiGen is
required. The directory can later be cleaned with the make clean
command.
Testing
The test suite is ran with the make test
command. Composer is
automatically installed as well as all the dependencies required to run the suite.
The directory can later be cleaned with the make clean
command.
The package is continuously tested by Travis CI.
License
This package is licensed under the New BSD License - See the LICENSE file for details.