1. Go to this page and download the library: Download alighale/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/ */
alighale / sms example snippets
'providers' => [
// for laravel 5.8 and below
\Serjik\Sms\SmsServiceProvider::class,
];
/**
* sms driver
* [ 'kavenegar', 'ghasedak', ... ]
*/
'driver' => env('SMS_DRIVER'),
/**
* drivers config
*/
'drivers' => [
/**
* for install this service on your app run this:
* composer sedak' => [
'api_key' => "ghasedak api key",
'line_number' => "10008566",
// 'any_parameter' => 'any value',
],
// EXAMPLE
// 'your_driver' => [
// 'parameters' => '',
// 'provider' => \App\Sms\YourServiceName::class,
// ],
],