hofmannsven/laravel-brevo
Composer 安装命令:
composer require hofmannsven/laravel-brevo
包简介
Laravel wrapper for Brevo's API v3 PHP library.
README 文档
README
Laravel Brevo
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
hofmannsven/laravel-brevo 适用场景与选型建议
hofmannsven/laravel-brevo 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 65.39k 次下载、GitHub Stars 达 34, 最近一次更新时间为 2023 年 11 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「brevo」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hofmannsven/laravel-brevo 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hofmannsven/laravel-brevo 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hofmannsven/laravel-brevo 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Symfony Bundle to Manage Sending User Email via Brevo Transactional API
Brevo (previously "SendInBlue") mailer adapter for Craft CMS.
Alfabank REST API integration
Official Brevo provided RESTFul API V3 php library
Easily send Brevo transactional email and sms with Laravel notifier.
Provider-neutral transactional and marketing email bridge for Laravel.
统计信息
- 总下载量: 65.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 34
- 点击次数: 28
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-11-05
