webmechanica / yii2-sms_ru
Yii2 extension for sms.ru
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- webmechanica/smsru: *
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-04-19 16:17:29 UTC
README
Первоначально пакет был создан Александром Зелениным. Но впоследствии пакет был удален. Выложен только потому, что используется в проектах компании "Вебмеханика".
Installation
Composer
The preferred way to install this extension is through Composer.
Either run
php composer.phar require webmechanica/yii2-sms_ru "dev-master"
or add
"webmechanica/yii2-sms_ru": "dev-master"
to the require section of your composer.json
Add code in your components section of application configuration:
'sms' => [
'class' => 'webmechanica\yii\extensions\Sms',
'api_id' => '<api_id>'
],
or:
'sms' => [
'class' => 'webmechanica\yii\extensions\Sms',
'api_id' => '<api_id>',
'login' => '<login>',
'password' => '<password>'
],
Usage
SMS sending:
\Yii::$app->sms->sms_send( '<number>', '<text>' );
Author
Aleksandr Zelenin, e-mail: aleksandr@zelenin.me