Download the PHP package offline-agency/laravel-aruba-sms without Composer
On this page you can find all versions of the php package offline-agency/laravel-aruba-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download offline-agency/laravel-aruba-sms
More information about offline-agency/laravel-aruba-sms
Files in offline-agency/laravel-aruba-sms
Package laravel-aruba-sms
Short Description Laravel notification channel and API client for Aruba SMS Panel
License MIT
Informations about the package laravel-aruba-sms
Laravel Aruba SMS
Laravel notification channel and API client for the Aruba SMS API Service. See the official API documentation.

Requirements
- PHP ^8.4
- Laravel ^12.0 or ^13.0
Installation
From Packagist (when published)
Local development (path repository)
Add to your project's composer.json:
Then:
Publish config
Configuration
Copy .env.example or add these to your .env:
| Variable | Description | Default |
|---|---|---|
ARUBA_SMS_ID |
Aruba SMS Panel username | (required) |
ARUBA_SMS_PASSWORD |
Aruba SMS Panel password | (required) |
ARUBA_SMS_BASE_URL |
API base URL | https://smspanel.aruba.it/API/v1.0/REST/ |
ARUBA_SMS_SENDER |
Sender name on recipient's device | YourBrand |
ARUBA_SMS_MESSAGE_TYPE |
SMS type | N (Normal) |
ARUBA_SMS_SANDBOX |
Log instead of sending | false |
ARUBA_SMS_MINIMUM_SMS |
Low credit alert threshold | 50 |
ARUBA_SMS_LOW_CREDIT_RECIPIENTS |
Comma-separated admin emails | (empty) |
Usage
Via Notification Channel
Create a notification that uses the aruba-sms channel:
Using the Built-in Generic Notification
Direct Client Usage
Via Facade
Backward Compatibility (Legacy Pattern)
Notifications with public $message, $recipient, $message_type properties work without implementing toArubaSms():
Artisan Commands
aruba:sms
Manage the Aruba SMS Panel from the command line:
aruba:check-remaining-sms
Check remaining credits and send email alerts if below threshold:
Configure alert recipients via ARUBA_SMS_LOW_CREDIT_RECIPIENTS env variable.
Phone Number Formatting
The package provides a PhoneNumberFormatter utility for Italian phone numbers:
Sandbox Mode
When ARUBA_SMS_SANDBOX=true, SMS messages are logged to the Laravel log instead of being sent to the Aruba API. This is useful for development and testing:
Testing
All tests use Pest with Http::fake() and never call the real Aruba API.
License
MIT
All versions of laravel-aruba-sms with dependencies
illuminate/http Version ^12.0|^13.0
illuminate/notifications Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0