Download the PHP package ruudk/postmark-bundle without Composer
On this page you can find all versions of the php package ruudk/postmark-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ruudk/postmark-bundle
More information about ruudk/postmark-bundle
Files in ruudk/postmark-bundle
Package postmark-bundle
Short Description This bundle lets you send messages via Postmark. It can offload the sending of messages to a Resque worker for speed and reliability.
License MIT
Homepage http://github.com/ruudk/PostmarkBundle
Informations about the package postmark-bundle
RuudkPostmarkBundle
This bundle lets you send messages via Postmark. It can offload the sending of messages to a Resque worker for speed and reliability.
Installation
Step1: Require the package with Composer
php composer.phar require ruudk/postmark-bundle
Step2: Enable the bundles
Enable the bundles in the kernel:
Step3: Configure
Configure the bundle.
Optionally, you can specify extra options
`
If you want to configure the BCCResqueBundle, check the docs.
Congratulations! You're ready.
Usage
Composing messages
``
Sending messages
If you want to send the message directly: ``
To send the message to a Resque worker, add an extra delayed()
method:
``
Batches
To send multiple messages in a batch (one API call): ``
Twig templates
This bundle supports Twig so that you can send a new message using a Twig template as a base.
Create a Twig template with a couple of blocks. It's not necessary to have them all. `
And compose the message: ``
Resque
If you want to use a Resque worker to send the messages you'll have to start the worker first:
php app/console bcc:resque:worker-start -f postmark
Now when you send a message with the delayed()
method the worker will pick it up and send it.
Author
Ruud Kamphuis
All versions of postmark-bundle with dependencies
symfony/symfony Version >=2.1,<2.3-dev
kriswallsmith/buzz Version ~0.9
bcc/resque-bundle Version ~1.1