Download the PHP package jeffersongoncalves/laravel-brevo without Composer
On this page you can find all versions of the php package jeffersongoncalves/laravel-brevo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersongoncalves/laravel-brevo
More information about jeffersongoncalves/laravel-brevo
Files in jeffersongoncalves/laravel-brevo
Package laravel-brevo
Short Description PHP/Laravel client for the Brevo (formerly Sendinblue) REST API v3: account, contacts, lists, transactional email/SMS, email & SMS campaigns and senders.
License MIT
Homepage https://github.com/jeffersongoncalves/laravel-brevo
Informations about the package laravel-brevo
Laravel Brevo
A PHP/Laravel client for the Brevo (formerly Sendinblue) REST API v3. Covers account, contacts, lists, transactional email/SMS, email & SMS campaigns and senders through a simple, typed API built on Laravel's Http client.
Features
- Account: get the authenticated account's details
- Contacts: list, get, create, update, delete, bulk import
- Lists: list, get, create, update, delete, list a list's contacts, add/remove contacts
- Transactional email: send via
/smtp/email - Transactional SMS: send via
/transactionalSMS/sms - Email campaigns: list, get, create, update, delete, send now, send a test
- SMS campaigns: list (filter by status)
- Senders: list, create
- Throws
BrevoException(with the original API error body) on any non-2xx response - Throws
InvalidArgumentExceptionbefore hitting the API when a required field is missing
Installation
You can install the package via composer:
Publish the config file:
Set your Brevo API key in .env:
Find it under SMTP & API > API Keys in your Brevo account.
Configuration
Usage
The package is resolved via the Brevo facade or by injecting JeffersonGoncalves\Brevo\Brevo. Each resource is exposed as a method returning a dedicated resource class; the account and transactional email/SMS endpoints are exposed directly on the manager.
Account
Contacts
Lists
Transactional email and SMS
Email campaigns
SMS campaigns and senders
Error handling
Any non-2xx API response throws JeffersonGoncalves\Brevo\Exceptions\BrevoException, which exposes the decoded error body:
Missing required fields (e.g. email on contacts()->create(), name on lists()->create()) throw InvalidArgumentException before any HTTP call is made.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Jefferson Gonçalves
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-brevo with dependencies
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
spatie/laravel-package-tools Version ^1.14.0