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

dev-master 2017-12-18 10:18 UTC

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

Build Status codecov

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();