定制 mediumart/orange 二次开发

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

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

mediumart/orange

最新稳定版本:2.0.0

Composer 安装命令:

composer require mediumart/orange

包简介

A laravel wrapper/adapter for orange api services.

README 文档

README

Build Status Coverage Status Latest Stable Version License

Description

A laravel wrapper/adapter for orange api services.

Installation

Using composer:

$ composer require mediumart/orange

If you are using laravel 5.3+ prior to version 5.5, add this to your config/app.php inside the 'providers' array

Mediumart\Orange\OrangeServiceProvider::class

SMS Api

Configuration

Open the config/services.php and add a key for the orange>sms service like this:

'orange' => [
    'sms' => [
        'client_id' => '<client_id>',
        'client_secret' => '<client_secret>'
    ]
]

Using these credentials, a token will be fetched and cached, and then automatically be renewed a few days before its expiration.

How to use

You can resolve an SMS client instance from the Container like this:

$sms = app('orange-sms');

Or using type hinting

use Mediumart\Orange\SMS\SMS;

public function index(SMS $sms) 
{
    /.../
}

The documentation on how to use the $sms client instance can be found here

License

Mediumart orange is an open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固