2017 © Pedro Peláez
 

library buzzi-laravel

A service which wraps the functionality of the Buzzi PHPSDK for easy use within the Laravel framework.

image

swarming/buzzi-laravel

A service which wraps the functionality of the Buzzi PHPSDK for easy use within the Laravel framework.

  • Tuesday, October 31, 2017
  • by zprisk
  • Repository
  • 16 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

package-buzzi-laravel

Buzzi for the PHP framework Laravel, (*1)

Installation

The recommended way to install swarming/buzzi-laravel is through composer., (*2)

composer require swarming/buzzi-laravel

Lumen

In Lumen find the Register Service Providers in your bootstrap/app.php and register the Buzzi Service Provider., (*3)

    $app->register(Buzzi\Laravel\ServiceProvider::class);

Laravel

In Laravel find the providers key in your config/app.php and register the Buzzi Service Provider., (*4)

    'providers' => array(
        // ...
        Buzzi\Laravel\ServiceProvider::class,
    )

Find the aliases key in your config/app.php and add the Buzzi facade alias., (*5)

    'aliases' => array(
        // ...
        'Buzzi' => Buzzi\Laravel\Facade::class,
    )

Configuration

By default, the package uses the following environment variables to auto-configure the plugin without modification:, (*6)

BUZZI_API_ID
BUZZI_API_SECRET

To customize the configuration file, publish the package configuration using Artisan., (*7)

php artisan vendor:publish

Update your settings in the generated app/config/buzzi.php configuration file., (*8)

return [

    'api' => [
        'id'     => env('BUZZI_API_ID',     '<your-buzzi-api-id-here>'),
        'secret' => env('BUZZI_API_SECRET', '<your-buzzi-api-secret-here>')
    ]

];

Usage

In order to use the Buzzi SDK for PHP within your app, you need to retrieve it from the Laravel Service Container. The following example uses the Buzzi client to send an event., (*9)

$buzzi = App::make('buzzi');

$buzzi->send('buzzi.ecommerce.test', ["message" => "Hello, World", "timestamp" => date(DATE_ATOM)]);

If the Buzzi facade is registered within the aliases section of the application configuration, you can also use the following technique., (*10)

Buzzi::send('buzzi.ecommerce.test', ["message" => "Hello, World", "timestamp" => date(DATE_ATOM)]);

The Versions

31/10 2017

dev-master

9999999-dev http://swarmingtech.com

A service which wraps the functionality of the Buzzi PHPSDK for easy use within the Laravel framework.

  Sources   Download

proprietary

The Requires

 

laravel php sdk buzzi

31/10 2017

0.2.0

0.2.0.0 http://swarmingtech.com

A service which wraps the functionality of the Buzzi PHPSDK for easy use within the Laravel framework.

  Sources   Download

proprietary

The Requires

 

laravel php sdk buzzi

23/05 2017

0.1.0

0.1.0.0 http://swarmingtech.com

A service which wraps the functionality of the Buzzi PHPSDK for easy use within the Laravel framework.

  Sources   Download

proprietary

The Requires

 

laravel php sdk buzzi

12/04 2017

0.0.1

0.0.1.0 http://swarmingtech.com

A service which wraps the functionality of the Buzzi PHPSDK for easy use within the Laravel framework.

  Sources   Download

proprietary

The Requires

 

laravel php sdk buzzi