kinow-io / sendinblue-wrapper by kinow-io
forked from philippe-kinow/sendinblue-wrapper

A Laravel 5 wrapper for the SendInBlue API PHP class (as provided by SendInBlue)
511
1
1
Package Data
Maintainer Username: kinow-io
Maintainer Contact: tom@vansteen.me (Thomas Van Steenwinckel)
Package Create Date: 2017-08-29
Package Last Update: 2017-08-30
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-12-15 15:01:42
Package Statistics
Total Downloads: 511
Monthly Downloads: 2
Daily Downloads: 0
Total Stars: 1
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Sendinblue API with support for Laravel

The package supports use with Laravel 5 providing a SendinblueWrapper facade.

Installation:

First method

Just run composer require kinow-io/sendinblue-wrapper

Second method

In order to install, add the following to your composer.json file within the require block:

"require": {
    …
    "kinow-io/sendinblue-wrapper": "dev-master"
    …
}

Within Laravel, locate the file config/app.php. Add the following to the providers array:

'providers' => [
    …
    \Kinow\Sendinblue\SendinblueServiceProvider::class,
],

Furthermore, add the following the the aliases array:

'aliases' => [
    …
    'SendinblueWrapper' => 'Kinow\Sendinblue\Facades\SendinBlueWrapper',
],

Run the command composer update.

Publish the configuration:

// Laravel 5
$ php artisan vendor:publish

Usage:

Your unique Sendinblue API key should be set in your .env file as SENDINBLUE_KEY.

Methods of the Sendinblue API class work as described by the Sendinblue API docs found Here. Thanks to Laravel's use of the "Facade" design pattern, all methods may be called in the following manner:

…
// Retrieve your account info
$account = SendinblueWrapper::get_account();
…