Download the PHP package mpp/message-bundle without Composer
On this page you can find all versions of the php package mpp/message-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package message-bundle
Symfony Bundle to handle message delivery
Installation
To install this bundle, simply run the following command:
Check if this line Mpp\MessageBundle\MppMessageBundle::class => ['all' => true],
has beend added into config/bundles.php
How to use
First you have to configure your messages config in config/packages/mpp_message.yaml
:
Then you can use the MessageProvider
to send your message like this:
How to test
Add this config in config/routes/dev/mpp_message.yaml
Then, if you look at the config/packages/mpp_message.yaml
file, create two files message_1_template.html.twig
and message_1_template.txt.twig
into template/email
with this structure :
Now, you can test the following url using GET method (works only in dev
environment):
http://your-url-project/test/message/send/message_1
The last url path part message_1
is the message identifier that will be used to send the message.
If you would like to test using custom transportOptions
and contents
parameters, you can give them using query parameters like this:
http://your-url-project/test/message/send/message_1?transportOptions[recipientC][]=recipient@demo.fr&contents[fullname]=Test
All versions of message-bundle with dependencies
symfony/dependency-injection Version ^4.0 | ^5.0 | ^6.0
symfony/framework-bundle Version ^4.0 | ^5.0 | ^6.0
symfony/twig-bundle Version ^4.0 | ^5.0 | ^6.0
symfony/mailer Version ^4.0 | ^5.0 | ^6.0
symfony/monolog-bundle Version *
symfony/options-resolver Version ^4.0 | ^5.0 | ^6.0