kinow-io / sendinblue-wrapper
SendInBlue API PHP 类(由 SendInBlue 提供)的 Laravel 5 包装器
v1.0.0
2017-08-29 15:36 UTC
Requires
- php: >=7.0
- illuminate/config: ~5.0
- illuminate/support: ~5.0
- mailin-api/mailin-api-php: *
This package is not auto-updated.
Last update: 2024-09-21 15:01:12 UTC
README
该软件包支持与 Laravel 5 一起使用,提供了一个 SendinblueWrapper 门面。
安装
第一种方法
只需运行 composer require kinow-io/sendinblue-wrapper
第二种方法
为了安装,请将以下内容添加到您的 composer.json 文件中的 require 块内
"require": { … "kinow-io/sendinblue-wrapper": "dev-master" … }
在 Laravel 中,找到文件 config/app.php。将以下内容添加到 providers 数组中
'providers' => [ … \Kinow\Sendinblue\SendinblueServiceProvider::class, ],
此外,将以下内容添加到 aliases 数组中
'aliases' => [ … 'SendinblueWrapper' => 'Kinow\Sendinblue\Facades\SendinBlueWrapper', ],
运行命令 composer update。
发布配置
// Laravel 5 $ php artisan vendor:publish
用法
您的独特 SendInBlue API 密钥应设置在您的 .env 文件中的 SENDINBLUE_KEY。
SendInBlue API 类的方法与在此处找到的 SendInBlue API 文档中描述的相同。感谢 Laravel 使用“门面”设计模式,所有方法都可以以下方式调用
… // Retrieve your account info $account = SendinblueWrapper::get_account(); …