Download the PHP package visual-craft/mailer-bundle without Composer
On this page you can find all versions of the php package visual-craft/mailer-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download visual-craft/mailer-bundle
More information about visual-craft/mailer-bundle
Files in visual-craft/mailer-bundle
Download visual-craft/mailer-bundle
More information about visual-craft/mailer-bundle
Files in visual-craft/mailer-bundle
Vendor visual-craft
Package mailer-bundle
Short Description Symfony bundle which provides high-level API for emails creation and sending
License MIT
Homepage https://github.com/Visual-Craft/mailer-bundle
Package mailer-bundle
Short Description Symfony bundle which provides high-level API for emails creation and sending
License MIT
Homepage https://github.com/Visual-Craft/mailer-bundle
Please rate this library. Is it a good library?
Informations about the package mailer-bundle
VisualCraftMailerBundle
Symfony bundle which provides high-level API for emails creation and sending
Installation
Step 1: Install the VisualCraftMailerBundle
$ composer require visual-craft/mailer-bundle
Step 2: Enable the VisualCraftMailerBundle
Usage
Create mail type class
Register mail type service
Send email
Mail type
By default you need to use mail type class as 1st argument for $mailer->send
method, to change this you should do the following:
Generating mail body and subject using twig templates
In order to simplify usage of twig for rendering mail body/subject you should do 2 things:
- Implement
VisualCraft\Bundle\MailerBundle\TwigAwareInterface
by yourMailType
, bundle will automatically inject twig service into you mail type service using method callsetTwig
. - Use trait
VisualCraft\Bundle\MailerBundle\TwigMailRendererTrait
by yourMailType
which will addsetTwig
,renderBody
andrenderSubject
methods.
Example:
Tests
License
This bundle is released under the MIT license. See the complete license in the file: LICENSE
All versions of mailer-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
symfony/framework-bundle Version ~3.4|~4.0|~5.0
symfony/swiftmailer-bundle Version ~3.0
symfony/options-resolver Version ~3.4|~4.0|~5.0
symfony/framework-bundle Version ~3.4|~4.0|~5.0
symfony/swiftmailer-bundle Version ~3.0
symfony/options-resolver Version ~3.4|~4.0|~5.0
The package visual-craft/mailer-bundle contains the following files
Loading the files please wait ....