PHP code example of balfour / php-smsportal
1. Go to this page and download the library: Download balfour/php-smsportal 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/ */
balfour / php-smsportal example snippets
use Balfour\SmsPortal\SmsPortalClient;
use GuzzleHttp\Client;
$guzzle = new Client();
$client = new SmsPortalClient(
$guzzle,
null, // PSR-6 CacheItemPoolInterface
'[your client id]',
'[your secret]'
);
$resp = $client->sendMessage(
'+27000000000',
'This is a test message.'
);
bash
composer