fgh151/yii2-epochta-lite

Lite version of Epochta sms sender

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:yii2-extension

0.0.1 2019-02-27 14:27 UTC

This package is auto-updated.

Last update: 2024-09-17 03:57:42 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');