bcismariu/greenarrow-php
Composer 安装命令:
composer require bcismariu/greenarrow-php
包简介
Simple PHP wrapper for GreenArrow's sending email API
关键字:
README 文档
README
Installation
Update your composer.json file
{
"require": {
"bcismariu/greenarrow-php": "0.*"
}
}
Run composer update
Usage
use Bcismariu\GreenArrow\GreenArrow; use GuzzleHttp\Client; use Http\Adapter\Guzzle6\Client as GuzzleAdapter; $mailer = new GreenArrow(new GuzzleAdapter(new Client()), [ 'username' => 'username', 'password' => 'password', ]); $mailer->send([ 'message' => [ 'to' => [[ 'name' => 'John Smith', 'email' => 'john.smith@example.com' ]], 'from_name' => 'Jane Doe', 'from_email' => 'jane.doe@example.com', 'subject' => 'A simple subject', 'html' => '<h1>A simple html body</h1>', ], ]);
Contributions
This is a very basic implementation that can only handle basic calls. Any project contributions are welcomed!
统计信息
- 总下载量: 1.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-19