mikk150 / yii2-sms-ua-turbosms
1.0.0
2020-12-08 16:47 UTC
Requires
- mikk150/yii2-sms: ^1.0
- yiisoft/yii2-httpclient: ^2.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-08 23:32:30 UTC
README
Yii2 wrapper for Geordian TurboSMS sms provider
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require mikk150/yii2-sms-ua-turbosms "^1.0.0"
or add
"mikk150/yii2-sms-ua-turbosms": "~1.0.0"
to the `
require`
section of your composer.json
file.
Configuration
Via application component
'components' => [
'sms' => [
'class' => mikk150\sms\turbosms\Provider::class,
'bearerToken' => '<your turboSMS bearer token>',
],
],
Usage
Yii::$app
->sms
->compose('Text to send', ['attribute' => 'value'])
->setTo('123412341234')
->setFrom('Sender')
->send()
;