mikk150 / yii2-messentesms
yii2 messente sms sending component
Installs: 1 194
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- mikk150/yii2-sms: ~1.0.0
- yiisoft/yii2-httpclient: ~2.0.0
Requires (Dev)
- phpunit/phpunit: 4.8.34
This package is auto-updated.
Last update: 2024-12-05 04:10:02 UTC
README
Messente SMS Sending for Yii2
Inspired heavily by Yii2's emailing code
Usage
To use this extension, simply add the following code in your application configuration:
return [ //.... 'components' => [ 'sms' => [ 'class' => 'mikk150\messentesms\Provider', 'username' => 'messenteusername', 'password' => 'messentepassword', ], ], ];
You can then send an SMS as follows:
Yii::$app->sms->compose('Your awesome SMS') ->setFrom('Yii2') ->setTo('+15417543010') ->send();