2017 © Pedro Peláez
 

library laravel-1xinxi

1xinxi client for laravel

image

hsky/laravel-1xinxi

1xinxi client for laravel

  • Thursday, June 22, 2017
  • by xezw211
  • Repository
  • 1 Watchers
  • 1 Stars
  • 69 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 19 % Grown

The README.md

laravel-1xinxi

laravel5.2 for 1xinxi(第翼信息), (*1)

服务商

  1. http://sms.1xinxi.cn/ 第一短信(第翼短信)

安装

  • composer require hsky/laravel-1xinxi
  • config/app.php 下 providers 数组添加
    'providers' => [
        ...
        Hsky\XinXi\XinXiServiceProvider::class
    ]
  • [可选] config/app.php 下 aliases数组 添加
    'aliases' => [
        'Xinxi' => Hsky\XinXi\Facades\XinXiFacade::class,
    ]
  • 使用, (*2)

    • 发送普通短信[有定义短信模板]
    /**
     * 支持多手机号发送
     *  @param  $verify  string 验证码
     *  @param  $mobile  string|array
     *  @param  $sendTime  datetime  发送时间 
     *  @param  $extno  int  扩展码
     */
    Xinxi::sendNormalInfo($verify, $mobile, $sendTime = '', $extno = '');

eg: Xinxi::sendNormalInfo('1234', '13112345678', '2016-9-28 5:24:24', ''), (*3)

- 发送自定义短信[不需要短信模板]
    /**
     * 支持多手机号发送
     *  @param  $content  string 验证码
     *  @param  $mobile  string|array
     *  @param  $sendTime  datetime  发送时间 
     *  @param  $extno  int  扩展码
     */
    Xinxi::sendCustomInfo($content, $mobile, $sendTime = '', $extno = '');

eg: Xinxi::sendCustomInfo('自定义发送内容', '13112345678', '2016-9-28 5:24:24', ''), (*4)

The Versions

22/06 2017

dev-master

9999999-dev

1xinxi client for laravel

  Sources   Download

MIT

The Requires

 

22/06 2017

1.8

1.8.0.0

1xinxi client for laravel

  Sources   Download

MIT

The Requires

 

27/09 2016

1.7

1.7.0.0

1xinxi client for laravel

  Sources   Download

MIT

The Requires

 

27/09 2016

1.6

1.6.0.0

1xinxi client for laravel

  Sources   Download

MIT

The Requires

 

27/09 2016

1.5

1.5.0.0

1xinxi client for laravel

  Sources   Download

MIT

The Requires

 

27/09 2016

1.3

1.3.0.0

1xinxi client for laravel

  Sources   Download

MIT

The Requires

 

27/09 2016

1.1

1.1.0.0

1xinxi client for laravel

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

27/09 2016

1.0

1.0.0.0

1xinxi client for laravel

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires