hobrt / hbsms
This is a simple library to interact with hbsms.com api and send sms .
dev-master
2022-01-10 04:06 UTC
Requires
- guzzlehttp/guzzle: ^7.4
This package is auto-updated.
Last update: 2025-07-10 12:30:39 UTC
README
This is a simple library to interact with hbsms.com api and send sms .
composer require hobrt/hbsms:dev-master
<?php
require __DIR__."/vendor/autoload.php";
use hobrt\Hbsms;
$sms = new Hbsms("Your token");
$phone_number = "0678173186";
$message = "test first message ... ";
$device_id = 1;
$response = $sms->newSms($message, $phone_number, $device_id);
print_r(json_decode($response->getBody()));