2017 © Pedro Peláez
 

think-extend think-sms

Thinkphp 5.1 SMS Library, base on overtrue/easy-sms

image

myxland/think-sms

Thinkphp 5.1 SMS Library, base on overtrue/easy-sms

  • Monday, January 15, 2018
  • by myxland
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Thinkphp5.1 发送短信

安装

composer require myxland/think-sms:dev-master
php think sms:config

用法

下载证书文件
https://curl.haxx.se/ca/cacert.pem
修改php.ini
curl.cainfo = /绝对路径/cacert.pem
<?php
use myxland\sms\Sms;

$result = Sms::app()->send(15804245680, [
    'template' => 'SMS_10996345',
    'data' => [
        'code' => 6379
    ],
]);
var_dump($result);

The Versions

15/01 2018

dev-master

9999999-dev

Thinkphp 5.1 SMS Library, base on overtrue/easy-sms

  Sources   Download

Apache-2.0

The Requires

 

by HWJ