PHP code example of swarming / buzzi-laravel

1. Go to this page and download the library: Download swarming/buzzi-laravel library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

swarming / buzzi-laravel example snippets


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

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

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

return [

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

];

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

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

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