定制 doxxon/laravel-mandrill-request 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

doxxon/laravel-mandrill-request

Composer 安装命令:

composer require doxxon/laravel-mandrill-request

包简介

Mandrill transactional emails via Laravel 4

README 文档

README

Send Mandrill transactional emails from the Laravel 4 framework. This package is a Laravel 4 wrapper around MichMich's Laravel Mandrill Bundle.

Installation

  1. Edit your project's composer.json file and add a requirement for doxxon/laravel-mandrill-request.

     "require": {
     	"doxxon/laravel-mandrill-request": "dev-master"
     }
    
  2. Update composer from the command line:

     composer update
    
  3. Open app/config/app.php and add the following line to the providers array:

     'Doxxon\LaravelMandrillRequest\LaravelMandrillRequestServiceProvider',
    
  4. Add a facade alias to enable shorthand usage. Open app/config/app.php and add the following line to the aliases array:

     'Mandrill' => 'Doxxon\LaravelMandrillRequest\Facades\MandrillRequest',
    
  5. Publish the config files. This will allow you to set your Mandrill API key:

     php artisan config:publish doxxon/laravel-mandrill-request
    
  6. Set your Mandrill API key by editing config/packages/doxxon/laravel-mandrill-request/config.php:

return array(

	'api_key' => 'your api key here',

);

Get your API keys from the Mandrill Dashboard

Usage

$payload = array(
	'message' => array(
        'subject' => 'Transactional email via Mandrill',
        'html' => 'It works!',
        'from_email' => 'fromemail@example.com',
        'to' => array(array('email'=>'toemail@example.com'))
   	)
);

$response = Mandrill::request('messages/send', $payload);

See the Mandril API Docs for more information

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-07-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固