2017 © Pedro Peláez
 

yii2-extension blcms-sms-mobizone

Component for working with Mobizone SMS service

image

black-lamp/blcms-sms-mobizone

Component for working with Mobizone SMS service

  • Tuesday, October 18, 2016
  • by GutsVadim
  • Repository
  • 2 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Yii2 component for use sms service by "Mobizon" API

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

INSTALLATION

Run command, (*2)

    composer require black-lamp/blcms-sms-mobizone

or add, (*3)

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

Configure component in your app

Example:, (*4)

    '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., (*5)

Recipien phone number must be in international format without plus. Example: "380965550000"., (*6)

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., (*7)

USING

For sending one SMS:, (*8)

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

Also you ca use this set methods:, (*9)

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:, (*10)

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

The Versions

18/10 2016

dev-master

9999999-dev

Component for working with Mobizone SMS service

  Sources   Download

The Requires

 

by Albert Gainutdinov

yii2 sms blcms mobizone

18/10 2016

0.0.0.4

0.0.0.4

Component for working with Mobizone SMS service

  Sources   Download

The Requires

 

by Albert Gainutdinov

yii2 sms blcms mobizone

18/10 2016

0.0.0.3

0.0.0.3

Component for working with Mobizone SMS service

  Sources   Download

The Requires

 

by Albert Gainutdinov

yii2 sms blcms mobizone

17/10 2016

0.0.0.2

0.0.0.2

Component for working with Mobizone SMS service

  Sources   Download

The Requires

 

by Albert Gainutdinov

yii2 sms blcms mobizone

17/10 2016

0.0.0.1

0.0.0.1

Component for working with Mobizone SMS service

  Sources   Download

The Requires

 

by Albert Gainutdinov

yii2 sms blcms mobizone