fgh151 / yii2-epochta-lite
Lite version of Epochta sms sender
Package info
github.com/fgh151/yii2-epochta-lite
Type:yii2-extension
pkg:composer/fgh151/yii2-epochta-lite
0.0.1
2019-02-27 14:27 UTC
Requires
- php: >=5.6
- ext-curl: *
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2026-02-25 08:36:47 UTC
README
Lite version of Epochta sms sender. Unlike yii2-epochta this component can only send sms to one recipient.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist fgh151/yii2-epochta-lite "*"
or add
"fgh151/yii2-epochta-lite": "*"
to the require section of your composer.json file.
Settings
Add sms component to components section in config file:
'components' => [ 'sms' => [ 'class' => \cfgh151\modules\epochta\Sms::class ] ],
Add settings to application params:
return [ 'epochta-key' => 'your-epochta-key', 'epochta-secret' => 'your-epochta-secret', 'epochta-sender' => Sender Name, ];
Usage:
Once the extension is installed, simply use it in your code by :
Yii::$app->sms->send('Message text', '+9 (999) 999 99 99');