Download the PHP package sonergia/laravel-sendinblue without Composer
On this page you can find all versions of the php package sonergia/laravel-sendinblue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-sendinblue
laravel-sendinblue
Laravel's mail transport for SendinBlue
Summary
- laravel-sendinblue
- Summary
- Installation
- Configuration
- Usage with Sendinblue templates
- Regarding additional features
Installation
Compatibility
Version | Laravel | Sendinblue Api |
---|---|---|
3.* | 7.0 and above | v3 |
2.* | 5.5 - 6.* | v3 |
1.1.* | 5.5 - 6.* | v2 |
1.0.* | 5.0 - 5.4 | v2 |
Configuration
config/mail.php
config/services.php
.env
Usage in Mailable with Template Id
Using the sendinblue()
method you may pass extra fields listed below. All fields are optional:
template_id
(integer)tags
(array)params
(array)
If you want to use the subject defined in the template, it's necessary to pass
the SendinBlueTransport::USE_TEMPLATE_SUBJECT
placeholder in the subject()
. You may as well override the subject
text here. Otherwise, without the subject()
method, the subject will be derived from the class name.
Mailable requires a view - pass an empty array in the view()
method.
Params are accessbile in the SendinBlue template as:
{{ params.FIRSTNAME }}
{{ params.LINK }}
{{ params.AMOUNT }}
You may as well use param substitution in the subject field, eg.:
{{ params.FIRSTNAME }}, forgot your password?!
Note: Do not use hyphens '-' in the variable names. {{ params.FIRST_NAME }}
will work properly, but {{ params.FIRST-NAME }}
will fail. Source: https://github.com/sendinblue/APIv3-php-library/issues/151
Regarding additional features
This library aims to provide a Laravel-compatible interface for SendInBlue along with support for template ids, tags and params.
If you need features like specific SendInBlue beta SMTP Template batching, you should directly use the official SendInBlue PHP library.
All versions of laravel-sendinblue with dependencies
illuminate/mail Version ^7.0|^8.0|^9.0
sendinblue/api-v3-sdk Version ^7.4.4