alagaccia / laravel-brevo
Brevo API for Laravel Projects
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/alagaccia/laravel-brevo
Requires
- php: ^8.2|^8.3|^8.4
- guzzlehttp/guzzle: ^7.8
- laravel/framework: ^9.0|^10.0|^11.0|^12.0
README
Table of Contents
Installing and configuring
Installing the package
You need to use Composer to install this package into your Laravel project:
composer require alagaccia/laravel-brevo
Load Service Provider
From Laravel 5.5 and newer the package wil register itself using Laravel's Auto Discovery.
Laravel 5.4 and older needs to include BrevoServiceProvider in your config/app.php:
'providers' => [ /* * Package Service Providers... */ AndreaLagaccia\BrevoServiceProvider::class, ]
Publishing the configuration file
Run the following Artisan command in your terminal to copy the environment variables:
php artisan vendor:publish --provider="AndreaLagaccia\Brevo\BrevoServiceProvider"
Choose the preference and press ENTER
Provider: AndreaLagaccia\Brevo\BrevoServiceProvider
Now you have a config/brevo.php config file, where you can set the API_KEY and your favorite LIST_ID.
You can also write your brevo variables in the .env file as follow:
brevo_API_KEY=
brevo_LIST_ID=
brevo_API_KEY=