sendpulse-rest-api-laravel maintained by ivansabat
SendPulse Laravel
A service provider and facade to set up and use the SendPulse PHP library in Laravel.
Installation
- Install Package in a Laravel project:
composer require ivansabat/sendpulse-rest-api-laravel
- Set Environment Variables in .env:
SENDPULSE_API_USER_ID=your_api_user_id
SENDPULSE_API_SECRET=your_api_secret
- Publish the configuration file (create sendpulse.php in the config directory).
php artisan vendor:publish --provider="IvanSabat\SendPulse\Providers\SendPulseServiceProvider"
Usage
Use the Package in your Laravel application:
use IvanSabat\Sendpulse\Facades\SendPulse;
$addressBooks = SendPulse::listAddressBooks();
use IvanSabat\Sendpulse\Facades\SendPulse;
$sendPulse = new Sendpulse(
config('sendpulse.api_user_id'),
config('sendpulse.api_secret')
);
$addressBooks = $sendPulse->get('addressbooks');