PHP API Client HostedSMS.pl SimpleAPI and WEBSERWIS2SMS API
HostedSMS.pl API documentation
php >= 7.4
composer (https://getcomposer.org/)
composer require dcs-pl/hostedsms-php
require 'vendor/autoload.php';
use HostedSms\SimpleApi\HostedSmsSimpleApi;
$simpleApi = new HostedSmsSimpleApi($userEmail, $password);
$response = $simpleApi->sendSms($sender, $phone, $message);
require 'vendor/autoload.php';
use HostedSms\WebService\HostedSmsWebService;
$client = new HostedSmsWebService($userEmail, $password);
$response = $client->sendSms($phone, $message, $sender, $transactionId);
$response = $client->sendSmses($phones, $message, $sender, $transactionId);
$response = $client->getValidSenders();
$response = $client->getDeliveryReports($messageIds);
$response = $client->getunreadDeliveryReports();
$response = $client->getInputSmses($from, $to, $recipient, $markAsRead);
$response = $client->getUnreadInputSmses();
$response = $client->checkPhones($phones);
$response = $client->convertToGSM7($text);