Giter VIP home page Giter VIP logo

yuntongxun-sms's Introduction

#云通讯 短信Api 有个云通讯 和 云之讯 的接口几乎一样的。所以拿云之讯的改改

#Laravel 5 安装 在composer.json 添加

hardywen/yuntongxun-sms: '~1.0'

运行 composer update

config/app.php的providers数组里加入

Hardywen\YuntongxunSms\YuntongxunSmsServiceProvider::class,

aliases 数组里加入

'YuntongxunSms' => Hardywen\YuntongxunSms\Facade\YuntongxunSms::class,

运行

php artisan vendor:publish

config/yuntongxun.php 配置


#Laravel 4 安装

hardywen/yuntongxun-sms: 'dev-laravel-4'

运行 composer update -vvvapp/config/app.php的providers数组里加入

'Hardywen\YuntongxunSms\YuntongxunSmsServiceProvider',

aliases 数组里加入

'YuntongxunSms' => 'Hardywen\YuntongxunSms\Facade\YuntongxunSms',

运行php artisan config:publish hardywen/yuntongxun-sms 到 app/config/packages/hardywen/yuntongxun-sms/config.php 配置相关参数


#使用 发送手机短信

YuntongxunSms::templateSMS('9635', array('param1','param2'), '138xxxxxx')

发送语音验证码

YuntongxunSms::voiceCode('123123','138xxxx')

yuntongxun-sms's People

Contributors

hardywen avatar mgampkay avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.