kristoy0 / yii2-sms-dexatel
SMS sending for Yii2 via Dexatel provider
1.0.0
2022-08-22 11:29 UTC
Requires
- guzzlehttp/guzzle: ^6.0
- mikk150/yii2-sms: ^1.0
- yiisoft/yii2: ^2.0
Requires (Dev)
- codeception/codeception: ^4.2
- codeception/module-asserts: ^1.0.0
- codeception/module-yii2: ^1.1
This package is not auto-updated.
Last update: 2025-04-01 22:12:52 UTC
README
Yii2 wrapper for Dexatel sms provider.
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require kristoy0/yii2-sms-dexatel "^1.0.0"
or add
"kristoy0/yii2-sms-dexatel": "^1.0.0"
to the `
require`
section of your composer.json
file.
Configuration
Via application component
'components' => [
'sms' => [
'class' => kristoy0\sms\dexatel\Provider::class,
'apiKey' => '<your dexatel API key>',
],
],
Usage
Yii::$app
->sms
->compose('Text to send', ['attribute' => 'value'])
->setTo('123412341234')
->setFrom('Sender')
->send();