henrikbjorn / stampie-bundle
This bundle provides integration for Stampie Email Library
Installs: 32 282
Dependents: 0
Suggesters: 0
Security: 0
Stars: 26
Watchers: 4
Forks: 5
Open Issues: 2
Type:symfony-bundle
Requires
- php: ^7.2 || ^8.0
- stampie/stampie: ^1.0
- symfony/config: ^4.4.30 || ^5.3
- symfony/console: ^4.4.30 || ^5.3
- symfony/dependency-injection: ^4.4.31 || ^5.3
- symfony/framework-bundle: ^4.4.31 || ^5.3
- symfony/http-kernel: ^4.4.32 || ^5.3
Requires (Dev)
- guzzlehttp/psr7: ^1.4 || ^2.1
- nyholm/symfony-bundle-test: ^1.8.2
- php-http/curl-client: ^1.7 || ^2.2
- phpunit/phpunit: ^8.5.21 || ^9.5.10
- stampie/extra: ^1.0
- symfony/phpunit-bridge: ^5.3
Suggests
- php-http/httplug-bundle: for easier HTTP clients configuration
- stampie/extra: to have event-based hooks in the mailer
README
Integrates Stampie with Symfony.
$ composer require stampie/stampie-bundle
Usage
Add Stampie\StampieBundle\StampieBundle()
to your AppKernel.php
in the registerBundles
method.
Add the configuration to config.yml
as follows
stampie: mailer: postmark # [send_grid, postmark, mailgun, mandrill, mailjet, spark_post] are supported server_token: POSTMARK_API_TEST # Replace with your ServerToken for your Service
The HttpClient used by the bundle is configurable. By default, it uses the service httplug.client
, which
is the name of the default HTTP client when using HttplugBundle.
Using this bundle is optional. You can provide your own service integrating HTTPlug:
stampie: http_client: my_http_client
StampieExtra
This bundles allows you to use StampieExtra easily: add the extra library in your project. The integration is activated automatically to wrap the mailer in the extra mailer dispatching events. An integration with the profiler is also provided.
If you want to enable the ImpersonateListener to send all emails to the same address, provide a non-empty delivery address:
stampie: extra: delivery_address: dev@example.com