Giter VIP home page Giter VIP logo

yii2-smser's Introduction

yii2-smser

Latest Stable Version Total Downloads Latest Unstable Version License

Yii2 SMS extension (短信扩展)

包含接口:

Installation

The preferred way to install this extension is through composer. Check the composer.json for this extension's requirements and dependencies.

To install, either run

$ php composer.phar require daixianceng/yii2-smser "*"

or add

"daixianceng/yii2-smser": "*"

to the require section of your composer.json file.

Usage

return [
    'components' => [
        'smser' => [
            // **云信
            'class' => 'daixianceng\smser\CloudSmser',
            'username' => 'username',
            'password' => 'password',
            'useFileTransport' => false
        ]
    ],
];

OR

return [
    'components' => [
        'smser' => [
            // 云片网
            'class' => 'daixianceng\smser\YunpianSmser',
            'apikey' => '9b11127a9701975c734b8aee81ee3526', // 请替换成您的apikey
            'useFileTransport' => false
        ]
    ],
];
Yii::$app->smser->send('15000000000', '短信内容');
// 发送模板短信
Yii::$app->smser->sendByTemplate('15000000000', ['123456'], 1);

License

yii2-smser is released under the BSD 3-Clause License. See the bundled LICENSE for details.

yii2-smser's People

Contributors

daixianceng avatar

Watchers

Robert Liu avatar 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.