1. Go to this page and download the library: Download quickhelper/quicksms 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/ */
quickhelper / quicksms example snippets
use QuickSMS\Services\SmsService;
use QuickSMS\Validators\SmsValidator;
$smsService = new SmsService(new SmsValidator());
// Send SMS via Cequens
$result = $smsService->send([
'phone' => '+2010000000',
'message' => 'Test message',
'provider' => 'cequens',
'type' => 'sms'
]);
// Send OTP via SMS Misr
$result = $smsService->send([
'phone' => $phone,
'message' => $otpCode,
'type' => 'otp',
'provider' => 'smsmisr',
'template' => env('QUICKSMS_SMSMISR_OTP_TEMPLATE')
]);