kristoy0/yii2-sms-dexatel

SMS sending for Yii2 via Dexatel provider

Installs: 80

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:yii2-extension

1.0.0 2022-08-22 11:29 UTC

This package is not auto-updated.

Last update: 2024-04-30 17:35:06 UTC


README

Yii2 wrapper for Dexatel sms provider.

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require kristoy0/yii2-sms-dexatel "^1.0.0"

or add

"kristoy0/yii2-sms-dexatel": "^1.0.0"

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

Configuration

Via application component

'components' => [
    'sms' => [
        'class' => kristoy0\sms\dexatel\Provider::class,
        'apiKey' => '<your dexatel API key>',
    ],
],

Usage

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