Package Data | |
---|---|
Maintainer Username: | florian-kinow |
Maintainer Contact: | tom@vansteen.me (Thomas Van Steenwinckel) |
Package Create Date: | 2017-08-18 |
Package Last Update: | 2017-08-29 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-15 15:07:57 |
Package Statistics | |
---|---|
Total Downloads: | 151 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 0 |
Total Forks: | 1 |
Total Open Issues: | 2 |
The package supports use with Laravel 5 providing a SendinblueWrapper
facade.
Just run composer require floriankaemo/sendinblue-wrapper
In order to install, add the following to your composer.json
file within the require
block:
"require": {
…
"floriankaemo/sendinblue-wrapper": "dev-master"
…
}
Within Laravel, locate the file config/app.php
.
Add the following to the providers
array:
'providers' => [
…
\Floriankaemo\Sendinblue\SendinblueServiceProvider::class,
],
Furthermore, add the following the the aliases
array:
'aliases' => [
…
'SendinblueWrapper' => 'Floriankaemo\Sendinblue\Facades\SendinBlueWrapper',
],
Run the command composer update
.
// Laravel 5
$ php artisan vendor:publish
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();
…
Project forked from vansteen/sendinblue