hofmannsven/laravel-brevo

Laravel wrapper for Brevo's API v3 PHP library.

Maintainers

👁 hofmannsven

Package info

github.com/hofmannsven/laravel-brevo

Wiki

pkg:composer/hofmannsven/laravel-brevo

Statistics

Installs: 66 760

Dependents: 0

Suggesters: 0

Stars: 34

Open Issues: 1

2.2.1 2026-04-20 08:41 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 2c6127c6f3aa055ca6fe903ea71063f0495a4a62

laravelbrevo


README

👁 Laravel Brevo

Laravel Brevo

👁 Latest Version on Packagist
👁 GitHub Tests Action Status
👁 GitHub license

This package is a wrapper for Brevo's API v3 PHP library.

Tested with PHP versions 8.1, 8.2, 8.3, 8.4, and 8.5 on Laravel 10, Laravel 11, Laravel 12, and Laravel 13.

Installation

You can install the package via Composer:

composer require hofmannsven/laravel-brevo

Publish the config files

Publish package config files:

php artisan vendor:publish --provider="Hofmannsven\Brevo\BrevoServiceProvider"

Set the API Key

In your .env file, add your Brevo API key:

BREVO_API_KEY=xxx

Usage

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();

Available APIs

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

Development

Code Style Fixer

composer format

Testing

composer test

Changelog

Please read the changelog for more information about recent changes.

Contributing

Please read the contribution guidelines for details.

Support

Always feel free to raise an issue on GitHub.

Security

If you discover a security issue, please contact me directly. My GPG fingerprint/key is available on Keybase.

Credits

License

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