mcsneaky/yii2-moceansms

Yii2 Mocean SMS sending component

Installs: 612

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2017-12-19 15:11 UTC

This package is not auto-updated.

Last update: 2024-04-28 01:55:38 UTC


README

Mocean SMS sending for Yii2

Based on mikk150/yii2-messentesms

Build Status codecov

Usage

To use this extension, simply add the following code in your application configuration:

return [
    //....
    'components' => [
        'sms' => [
            'class' => 'mcsneaky\moceansms\Provider',
            'username' => 'myUsername',
            'password' => 'myPassword',
        ],
    ],
];

You can then send an SMS as follows:

Yii::$app->sms->compose('Your awesome SMS')
     ->setFrom('Yii2')
     ->setTo('+15417543010')
     ->send();