alexeevdv / yii2-sms-ge-unicard
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-29 05:22:33 UTC
README
Yii2 wrapper for Geordian UNICARD sms provider
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require alexeevdv/yii2-sms-ge-unicard "~1.0.0"
or add
"alexeevdv/yii2-sms-ge-unicard": "~1.0.0"
to the require
section of your composer.json
file.
Configuration
Via application component
'components' => [ 'sms' => [ 'class' => \alexeevdv\sms\ge\unicard\Provider::class, // If you want to ensure only Georgia phone numbers would be sent //'destinationChecker' => \alexeevdv\sms\ge\unicard\GeorgiaDestinationChecker::class, ], ],
Usage
Yii::$app ->sms ->compose('view', ['attribute' => 'value']) ->setTo('123412341234') ->setFrom('Sender') ->send() ;