2017 © Pedro Peláez
 

library sendinblue-wrapper

A Laravel 5 wrapper for the SendInBlue API PHP class (as provided by SendInBlue)

image

floriankaemo/sendinblue-wrapper

A Laravel 5 wrapper for the SendInBlue API PHP class (as provided by SendInBlue)

  • Tuesday, August 29, 2017
  • by floriankaemo
  • Repository
  • 0 Watchers
  • 1 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 1 Versions
  • 13 % Grown

The README.md

Sendinblue API with support for Laravel

The package supports use with Laravel 5 providing a SendinblueWrapper facade., (*1)

Installation:

First method

Just run composer require floriankaemo/sendinblue-wrapper, (*2)

Second method

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

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

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

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

Furthermore, add the following the the aliases array:, (*5)

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

Run the command composer update., (*6)

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., (*7)

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

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

Project forked from vansteen/sendinblue, (*9)

The Versions

29/08 2017

dev-master

9999999-dev

A Laravel 5 wrapper for the SendInBlue API PHP class (as provided by SendInBlue)

  Sources   Download

MIT

The Requires

 

by Florian Bouchet

laravel sendinblue