1. Go to this page and download the library: Download delboy1978uk/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/ */
delboy1978uk / sms example snippets
use SomeProvider;
use SmsService;
$config = [
'client_id' => 'whatever',
'client_secret' => 'whatever',
'api_url' => 'https://whatever',
'authentication_url' => '/authorize',
'tokenurlurl' => '/token',
];
$adapter = new SomeProvider($config);
$smsService = new SmsService($adapter);
$number = '00447123456789';
$message = 'Your delivery is about to arrive!';
$smsService->sendSms($number, $message);
$numbers = ['00447123456789', '0032123123456'];
$message = 'The latest and greatest version of X is out now!!';
$smsService->sendGroupSms($numbers, $message);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.