PHP code example of superbalist / php-panaceamobile
1. Go to this page and download the library: Download superbalist/php-panaceamobile 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/ */
superbalist / php-panaceamobile example snippets
$username = 'your_username';
$password = 'your_password';
$guzzleClient = new \GuzzleHttp\Client();
$client = new \Superbalist\PanaceaMobile\PanaceaMobileAPI($guzzleClient, $username, $password);
$response = $client->sendMessage('+27000000000', 'This is a test message.');
var_dump($response);
bash
composer