定制 rulecom/api-wrapper 二次开发

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

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

rulecom/api-wrapper

Composer 安装命令:

composer require rulecom/api-wrapper

包简介

Api wrapper for the RULE mailer.

README 文档

README

Package wrapping an RULE Mailer api using an guzzlehttp client as backend for the requests

Installation

Regular composer installation supposed, like: composer require rulecom/api-wrapper

Integration with Laravel

Use src/LaravelServiceProvider.php to register API instances in your application. Create config/rule-api.php file for the API configuration.

Then you'll be able to disectly use configured API classes

use Rule\ApiWrapper\Api\V2\Subscriber\Subscriber;

class Foo
{
    private $subscriberApi;

    public function __construct(Subscriber $subscriberApi)
    {
        $this->subscriberApi = $subscriberApi;
    }

    public function createMeSomeSubscriber($params)
    {
        //... do something 
        $this->subscriberApi->create([
            'email' => $email,
            //... see docs for detailes
        ]);
    }
}

Docs

For the docs please refer docs folder in this repository.

统计信息

  • 总下载量: 18.42k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-07-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固