aztech/coyote 问题修复 & 功能扩展

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

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

aztech/coyote

最新稳定版本:0.1.1

Composer 安装命令:

composer require aztech/coyote

包简介

Email and SMS abstraction layer

README 文档

README

Build Status Scrutinizer Code Quality Coverage Status HHVM Support

License Latest Stable Version

Coyote is a library to send emails and text messages with support for multiple provides

Setup

Install the library

Composer is the only supported way of installing Coyote. From the root of your project, run the following command:

composer require aztech/coyote

Pick a provider

Coyote is only an abstraction layer on top of existing SDK's, and by default, does not include those in order to avoid loading too many packages in your project.

Here's the list of the required packages to be able to use each provider:

For email

  • Mandrill: composer require mandrill/mandrill:~1.0
  • Mailgun: composer require mailgun/mailgun:~1.7

For text messages

  • Twilio: composer require twilio/sdk:~3.12

Features

  • Send transactional emails
  • Build messages using local or remote (ie. Mandrill/Mailchimp templates) message templates
  • Send text messages
  • Optional integration with Phinject DI container

Usage

Send emails

use \Aztech\Coyote\Email\Address;
use \Aztech\Coyote\Email\Message;
use \Aztech\Coyote\Email\Provider\MailgunFactory;

require_once 'vendor/autoload.php';

$factory = new MailgunFactory();
$provider = $factory->buildProvider([
    'key' => 'MAILGUN_APIKEY',
    'domain' => 'mydomain.com'
]);

$message = new \Aztech\Coyote\Email\Message();

$message->addRecipient(new Address('email@domain.com');
$message->setTitle('News');
$message->setBody('Hello, how are you ?');

$provider->send($message);

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固