Looking to hire Laravel developers? Try LaraJobs

laravel-sendpulse-api maintained by zlodey

Description
SendPulse service provider for laravel
Last update
2021/02/23 20:01 (dev-master)
License
Downloads
497
Tags

Comments
comments powered by Disqus

Version

Laravel - SendPulse Service Provider

Install With Composer:

composer require zlodey/laravel-sendpulse-api 1.*

Or manualy in composer.json:

"require": {
    "zlodey/laravel-sendpulse-api": "1.*"
}

Define into .env

SENDPULSE_API_USER_ID=<your api user id>
SENDPULSE_API_SECRET=<your api secret>

For Laravel >= 5.5 you are ready to go

For laravel < 5.5 you need to register service provider

/configs/app.php

    ...
    'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        ...

        /*
         * Application Service Providers...
         */
        ...
        'Zlodey\SendPulse\SendPulseServiceProvider'
    ],

Usage

app('SendPulse')->listAddressBooks();
app('SendPulse')->listSenders();

And so on..

Full list of available commands you can find at \Sendpulse\RestApi\ApiInterface