定制 black-lamp/blcms-sms-mobizone 二次开发

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

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

black-lamp/blcms-sms-mobizone

Composer 安装命令:

composer require black-lamp/blcms-sms-mobizone

包简介

Component for working with Mobizone SMS service

README 文档

README

This is unofficial component for use "Mobizon" API (https://mobizon.net.ua). It allows send single messages and check account balance.

INSTALLATION

Run command

    composer require black-lamp/blcms-sms-mobizone

or add

    "black-lamp/blcms-sms-mobizone": "*",

Configure component in your app

Example:

    'components' => [
        'sms' => [
                    'class' => bl\cms\sms\SmsMobizoneComponent::className(),
        
                    'apiToken' => '00000000000000000000000000000000000000000',
                    'recipientPhoneNumber' => '380965550000',
                    'smsText' => 'Default message',
                    'alphaName' => 'Name'
            ],
        ]

For get API token you must register account at https://mobizon.net.ua. After this turn on API access on "API settings" panel section (https://mobizon.net.ua/panel) and get your token.

Recipien phone number must be in international format without plus. Example: "380965550000".

Alpha name is your signature in SMS that will be used instead sender phone number. For use this property you must create alpha-name in your account (https://mobizon.net.ua/panel) on "My signatures" panel section. This property can be empty.

USING

For sending one SMS:

    $messageId = Yii::$app->sms->setSmsText('Some text')->send();

Also you ca use this set methods:

Yii::$app->sms->setApiToken(string $token);
Yii::$app->sms->setRecipientPhoneNumber(string $recipientPhoneNumber);
Yii::$app->sms->setSmsText(string $smsText);
Yii::$app->sms->setAlphaName(string $alphaName);

For get user account balance:

    $balance = Yii::$app->sms->getBalance();

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-10-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固