dvomaks/laravel-sendpulse

A minimal service provider to set up and use the SendPulse PHP library in Laravel 5
2,663 1
Install
composer require dvomaks/laravel-sendpulse
PHP:^7.3|^7.4|^8.0
License:MIT
Last Updated:Nov 29, 2021
Links: GitHub  ·  Packagist
Maintainer: dvomaks

SendPulse Laravel Helper

CircleCI

A service provider and facade to set up and use the SendPulse PHP library in Laravel 5.

This package consists of a service provider, which binds an instance of an initialized SendPulse client to the IoC-container and a SendPulse facade so you may access all methods of the Sendpulse\RestAPI\ApiClient class via the syntax:

$message = ['title' => 'My first notification', 'website_id' => 1, 'body' => 'I am the body of the push message'];

SendPulse::createPushTask($message);

You should refer to the SendPulse API and underlying SendPulseApi PHP class for full details about all available methods.

Setup

  1. Install the 'dvomaks/laravel-sendpulse' package

    Note, this will also install the required sendpulse/rest-api package.

    $ composer require dvomaks/laravel-sendpulse dev-master
    
  2. Update 'config/app.php'

    # Add `SendPulseLaravelServiceProvider` to the `providers` array
    'providers' => array(
        ...
        'Dvomaks\LaravelSendPulse\SendPulseServiceProvider',
    )
    
    # Add the `SendPushFacade` to the `aliases` array
    'aliases' => array(
        ...
        'SendPulse' => 'Dvomaks\LaravelSendPulse\SendPulseFacade',
    )
    
  3. Publish the configuration file (creates sendpulse.php in config directory) and add your API keys and optional default settings.

    $ php artisan vendor:publish
    

Related Packages

flameplace/sendpulse-laravel

Laravel Package for Sendpulse API. Provides easy access to the sendpulse/sendpul...

1,215 0
areeb/email-service

Laravel package for email service

6,004 1
wensleydale/sendpulse-laravel

A minimal service provider to set up and use the SendPulse PHP library in Larave...

4,387 7
php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,315 160
kavenegar/laravel

laravel 4 and 5 kavenegar integration

368,693 86