1. Go to this page and download the library: Download isurindu/laravel-sms 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/ */
namespace Isurindu\LaravelSms\Gateways;
use Isurindu\LaravelSms\Interfaces\SmsInterface;
use Isurindu\LaravelSms\Exceptions\LaravelSmsGatewayException;
class MobitelGateway implements SmsInterface
{
public function sendSms($to, $msg, $from)
{
//send sms logic here
//if something went wrong throw new LaravelSmsGatewayException('something went wrong');
}
}