bharatk/mailgunserviceprovider 问题修复 & 功能扩展

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

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

bharatk/mailgunserviceprovider

最新稳定版本:1.1.0

Composer 安装命令:

composer require bharatk/mailgunserviceprovider

包简介

Mailgun Service Provider for Silex

README 文档

README

A Simple wrapper for the mailgun API for the Silex Framework.

Features

  • Easy setup.
  • All the Mailgun API features.

Requirements

  • PHP 5.3+
  • mailgun-php

Installation

$ composer require bharatk/mailgunserviceprovider

Setup

require_once __DIR__.'/vendor/autoload.php';

use Silex\Application;
use AchrafSoltani\Provider\MailgunServiceProvider;

$app = new Application();

$app->register(new MailgunServiceProvider(), array(
    'mailgun.api_key' => 'key-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    'mailgun.domain' => 'domain.tld',
));

// Usage

$app->run();

Usage

  • Example 1 : Sending an email
$message = array(
    'from'    => 'Excited User <name@domain.tld>',
    'to'      => 'Baz <foo.bar@example.com>',
    'subject' => 'Greetings!',
    'text'    => 'Testing some Mailgun awesomness!'    
);

$app['mailgun']->sendMessage($message);
  • Example 2 : Creating a mailing list through the API
$app['mailgun']->post("lists", array(
    'address'     => 'LIST@domain.tld',
    'description' => 'Mailgun Dev List'
));

Full API documentation

Check how to use the full API capabilities at https://documentation.mailgun.com/user_manual.html

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固