PHP code example of katanyoo / yii2-sms-sender
1. Go to this page and download the library: Download katanyoo/yii2-sms-sender library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
katanyoo / yii2-sms-sender example snippets
return [
//....
'components' => [
'smsSender' => [
'class' => 'katanyoo\smssender\smsSender',
'provider_endpoint' => '<ENDPOINT>',
'username' => '<USERNAME>',
'password'=> '<PASSWORD>',
]
],
];
Yii::$app->smsSender
->setMobileNo('08xxxxxxxx')
->setMessage('your message')
->send();
php composer.phar