getbrevo/brevo-php
Legacy (v1.x) PHP SDK for Brevo API v3, auto-generated from OpenAPI/Swagger. Supports PHP 5.6+ and provides wrappers for Brevo features (email, contacts, campaigns, etc.). Maintained for critical security fixes only; migrate to brevo-php v4.
Pros:
AccountApi, ContactsApi, CRMApi), making it easy to integrate specific Brevo features (e.g., CRM, email campaigns, or conversations) without coupling unrelated functionality.Cons:
require getbrevo/brevo-php:1.x.x.api-key, partner-key) and Bearer tokens, which can be stored in Laravel’s .env or Vault.spatie/laravel-queue-retries) should be implemented./contacts). Laravel’s cursor-based pagination or eloquent collections should wrap API responses.importContacts or batch updates may hit memory limits in PHP. Laravel’s chunking or streaming should be considered.laravel-cache) or queued for async processing?App\Exceptions\Handler)?Brevo facade for cleaner syntax (e.g., Brevo::contacts()->create($data)).contact.created) on Brevo API responses.composer require getbrevo/brevo-php:1.x.x.laravel-cache) for frequent API calls.illuminate/http).config/services.php.BrevoServiceProvider to bind the client.composer update.spatie/laravel-queue-retries).How can I help you explore Laravel packages today?