1. Go to this page and download the library: Download sysborg/kingsms 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/ */
sysborg / kingsms example snippets
use Facades\Sysborg\KingSMS\Services\KingSMS;
$response = KingSMS::sendSMS(
'5598999999999', // Recipient phone number
'Your message goes here', // Message content
'Optional Campaign Name',
'Optional Date (dd/mm/yyyy)',
'Optional Time (hh:mm)'
);
$response = KingSMS::getRelatorio('your_sms_id');
$response = KingSMS::getSaldo();
$response = KingSMS::getResposta('read'); // or 'unread'
public function via($notifiable)
{
return ['kingsms'];
}
public function toKingsms($notifiable)
{
return 'This is your notification message';
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.