mikk150/yii2-sms-ua-turbosms

Installs: 160

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:yii2-extension

1.0.0 2020-12-08 16:47 UTC

This package is auto-updated.

Last update: 2024-04-08 22:09:02 UTC


README

Yii2 wrapper for Geordian TurboSMS sms provider

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require mikk150/yii2-sms-ua-turbosms "^1.0.0"

or add

"mikk150/yii2-sms-ua-turbosms": "~1.0.0"

to the `require` section of your composer.json file.

Configuration

Via application component

'components' => [
    'sms' => [
        'class' => mikk150\sms\turbosms\Provider::class,
        'bearerToken' => '<your turboSMS bearer token>',
    ],
],

Usage

Yii::$app
    ->sms
    ->compose('Text to send', ['attribute' => 'value'])
    ->setTo('123412341234')
    ->setFrom('Sender') 
    ->send()
;