it-brains / hi-sms
HiSMS Laravel integration
Installs: 37
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/it-brains/hi-sms
Requires
- php: >=7.3
- guzzlehttp/guzzle: ^7.0
- illuminate/log: ^8.34
This package is auto-updated.
Last update: 2025-10-05 19:16:39 UTC
README
This is a package to integrate HiSMS with Laravel.
Documentation is on manual page that send us to API pdf.
Installation
Require this package with composer.
composer require it-brains/hi-sms
You have to fill in your credentials to environment variables:
HISMS_USERNAME=
HISMS_PASSWORD=
HISMS_SENDER_NAME=
Usage
You can now add messages using the Facade:
HiSMS::getBalance(); $smsId = HiSMS::send($number, $message); $smsId = HiSMS::sendBulk([$number1, $number2], $message);
or use DI:
use ITBrains\HiSMS\HiSMSClient; ... function sendSms(HiSMSClient $sms) { $sms->getBalance(); $smsId = $sms->send($number, $message); $smsId = $sms->sendBulk([$number1, $number2], $message); } ...
Testing
If you need to mock SMSes on testing then you can just change your driver to anything not equal to 'hisms' on .env:
HISMS_DRIVER=hisms_faker