eseperio / yii2-netelip-sms
Connection to Netelip SMS API
Installs: 38
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- ext-curl: *
- ext-json: *
- ext-simplexml: *
- yiisoft/yii2: ^2.0
This package is auto-updated.
Last update: 2024-10-29 05:41:05 UTC
README
This component allows yii2 apps to send SMS messages via Netelip API (requires account)
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist eseperio/yii2-netelip-sms:"~1.0.0"
or add
eseperio/yii2-netelip-sms:"~1.0.0"
to the require section of your composer.json.
Configuration
Add to your components configuration.
components => [
'netelip'=>[
'class' => 'eseperio\netelipsms\NetelipSms',
'token' => 'yoursecuritytoken'
]
Usage:
Remember that all numbers must be written in international mode (prefixed with 00 and the country code.)
Yii::$app->netelip->sms('0034000000', "Message payload");