nuffic / yii2-messente
There is no license information available for the latest version (dev-develop) of this package.
Messente component for Yii 2 framework
dev-develop
2017-07-21 10:59 UTC
Requires
- giggsey/libphonenumber-for-php: ~8.0
- guzzlehttp/guzzle: ~6.0
This package is auto-updated.
Last update: 2024-10-29 00:21:46 UTC
README
Yii component for sending text messages to messente. Before sending to messente, it also checks if phone number is valid for specified country and if phone type is mobile.
How to use?
##Installation with Composer
Just add the line under require
object in your composer.json
file.
{ "require": { "nuffic/yii2-messente" : "dev-develop" } }
then run
$> composer update
##Configuration
Now add following in to your components
section of config.
'sms' => [ 'class' => 'nuffic\messente\SMS', 'username' => '<your API username>', 'password' => '<your API password>', 'from' => '<default sender>' #optional ],
##Usage
Yii::$app->sms->send('EE', 'Content here', '+372 111 1111', 'SenderHere');