Download the PHP package track-any-device/sms-gateway without Composer
On this page you can find all versions of the php package track-any-device/sms-gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download track-any-device/sms-gateway
More information about track-any-device/sms-gateway
Files in track-any-device/sms-gateway
Package sms-gateway
Short Description SMS gateway HTTP client for the Track Any Device platform.
License MIT
Informations about the package sms-gateway
track-any-device/sms-gateway
Laravel HTTP client package for the Track Any Device SMS gateway device. Wraps the gateway REST API with a typed service class, automatic config merging, and a contract interface for easy mocking in tests.
Requirements
- PHP 8.3+
- Laravel 11, 12, or 13
Installation
The service provider is auto-discovered. No manual registration needed.
Configuration
Publish the config file:
This creates config/sms.php. Add the corresponding values to your .env:
| Key | Description | Default |
|---|---|---|
SMS_GATEWAY_URL |
Base URL of the gateway device | — |
SMS_GATEWAY_API_KEY |
API key sent as X-API-Key |
— |
SMS_GATEWAY_TIMEOUT |
HTTP timeout in seconds | 15 |
Usage
Inject SmsGatewayContract (or SmsGatewayService) wherever you need it:
Send an SMS
Check gateway health
Read the inbox
Delete a message
Device status
Testing
Bind a mock against the contract in your test:
Logging
All failures are logged through Laravel's default logger:
| Event | Level |
|---|---|
send HTTP error or gateway error |
error |
send network exception |
error |
inbox HTTP error |
error |
inbox network exception |
error |
parseGatewayDate bad format |
warning |
Licence
MIT
All versions of sms-gateway with dependencies
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/log Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
nesbot/carbon Version ^3.0