1. Go to this page and download the library: Download sms77/krayin 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/ */
use Seven\Krayin\Services\SmsService;
$smsService = app(SmsService::class);
// Send SMS to a contact
$smsService->send(
to: '+1234567890',
message: 'Hello {{name}}, your appointment is confirmed!',
contactId: $contact->id
);