hofmannsven/laravel-brevo 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hofmannsven/laravel-brevo

最新稳定版本:2.1.2

Composer 安装命令:

composer require hofmannsven/laravel-brevo

包简介

Laravel wrapper for Brevo's API v3 PHP library.

README 文档

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, and 8.4 on Laravel 10, Laravel 11, and Laravel 12.

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

统计信息

  • 总下载量: 36.77k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 30
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 30
  • Watchers: 2
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-05