1. Go to this page and download the library: Download alizne/smsapi 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/ */
alizne / smsapi example snippets
use Alizeinodin\SmsApi\Facades\Sms;
Sms::send('09121234567', 'Your order was placed.');
use Alizeinodin\SmsApi\Notifications\NotificationMessage;
public function via($notifiable): array
{
return ['sms'];
}
public function toSms($notifiable): NotificationMessage
{
return NotificationMessage::create()
->template('otp-login', ['CODE' => $this->code]);
}