This package is a wrapper for Brevo's API v3 PHP library.
Tested with PHP versions 8.1, 8.2, 8.3, and 8.4 on Laravel 10 and Laravel 11.
You can install the package via Composer:
composer require hofmannsven/laravel-brevo
Publish package config files:
php artisan vendor:publish --provider="Hofmannsven\Brevo\BrevoServiceProvider"
In your `.env' file, add your Brevo API key:
BREVO_API_KEY=xxx
use Hofmannsven\Brevo\Facades\Brevo;
// Account
$result = Brevo::AccountApi()->getAccount();
var_dump($result);
// Domains
$result = Brevo::DomainsApi()->getDomains();
var_dump($result);
// Contacts
$result = Brevo::ContactsApi()->getContacts();
var_dump($result);
// With custom client
$result = Brevo::AccountApi(
new \GuzzleHttp\Client()
)->getAccount();
Use any getbrevo/brevo-php
API (see supported functions):
- AccountApi
- AttributesApi
- CompaniesApi
- ContactsApi
- ConversationsApi
- CouponsApi
- CRMApi
- DealsApi
- DomainsApi
- EcommerceApi
- EmailCampaignsApi
- EventsApi
- ExternalFeedsApi
- FilesApi
- FoldersApi
- InboundParsingApi
- ListsApi
- MasterAccountApi
- NotesApi
- ProcessApi
- ResellerApi
- SendersApi
- SMSCampaignsApi
- TasksApi
- TransactionalEmailsApi
- TransactionalSMSApi
- TransactionalWhatsAppApi
- UserApi
- WebhooksApi
- WhatsAppCampaignsApi
composer format
composer test
Please read the changelog for more information about recent changes.
Please read the contribution guidelines for details.
Always feel free to raise an issue on GitHub.
If you discover a security issue, please contact me directly. My GPG fingerprint/key is available on Keybase.
MIT License (MIT). Please read the license for more information.
Laravel and the Laravel logo are trademarks of Taylor Otwell. Banner image generated with banners.beyondco.de