Skip to content
This package provides an easy wrapper around the Sendinblue API for Laravel 5 applications.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
src
tests
.editorconfig
.gitattributes
.gitignore
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
LICENSE.md
README.md
composer.json
phpunit.xml

README.md

Sendinblue for Laravel

Latest Version on Packagist Build Status Total Downloads

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('bob@example.com');

// Create a contact, with more information
Sendinblue::createContact('billy@example.com', [
    'FNAME' => 'Billy',
    'LNAME' => 'Smith'
]);

// Delete a contact
Sendinblue::deleteContact('jen@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);

Installation

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"

Usage

After you've installed the package and published the config file, you'll need to add your Sendinblue API Key to your .env file:

SENDINBLUE_APIKEY=...

Then you can simply use the Sendinblue stuff, like this:

use Sendinblue;

Sendinblue::createContact('bob@example.com');

Testing

vendor/bin/phpunit

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email duncan@mcclean.co.uk instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

You can’t perform that action at this time.