Sendinblue for Laravel
This package provides an easy wrapper around the Sendinblue API for Laravel 5 applications. Behind the scenes of this package, we use the official Sendinblue SDK for PHP.
This package is not a mail driver, just a manager for contacts and other Sendinblue things. Think of it like the Sendinblue version of Spatie's Newsletter package. This package is in no way affiliated with Sendinblue.
Here are some of the available methods:
... use Sendinblue; ... // Create a contact, with just an email Sendinblue::createContact('email@example.com'); // Create a contact, with more information Sendinblue::createContact('firstname.lastname@example.org', [ 'FNAME' => 'Billy', 'LNAME' => 'Smith' ]); // Delete a contact Sendinblue::deleteContact('email@example.com'); // Create a folder Sendinblue::createFolder('Personal'); // Create a list // First param is the name, second is the id of the folder Sendinblue::createList('Blog Mailing List', 7);
You can install the package via composer:
composer require damcclean/laravel-sendinblue
Then you can publish the configuration file:
php artisan vendor:publish --provider="Damcclean\Sendinblue\SendinblueServiceProvider"
After you've installed the package and published the config file, you'll need to add your Sendinblue API Key to your
Then you can simply use the Sendinblue stuff, like this:
use Sendinblue; Sendinblue::createContact('firstname.lastname@example.org');
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email email@example.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.