Download the PHP package jishanhoshen/laravel-sms without Composer
On this page you can find all versions of the php package jishanhoshen/laravel-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jishanhoshen/laravel-sms
More information about jishanhoshen/laravel-sms
Files in jishanhoshen/laravel-sms
Package laravel-sms
Short Description Simple SMS sending service for Laravel apps, using a masking SMS gateway.
License MIT
Informations about the package laravel-sms
jishanhoshen/laravel-sms
Multi-provider SMS sending for Laravel apps. Send through whichever gateway is configured as
default (SMS_PROVIDER in .env), or pick a specific provider at call time — the rest of your
app's code never changes.
Built-in providers:
| Key | Gateway |
|---|---|
shiramsystem |
ShiramSystem (your current masking SMS gateway) |
twilio |
Twilio Programmable Messaging |
alpha_sms |
Alpha SMS / sms.net.bd |
Install
From a private/local path (no Packagist needed yet)
In each project's composer.json:
From a private VCS (GitHub repo)
Setup
Publish the config:
Pick the default provider and fill in only that provider's credentials in .env:
You only need to fill in credentials for the provider(s) you actually use.
Usage
Default provider, via facade:
Explicit provider, one-off:
Via dependency injection (uses the default provider):
Via the container directly:
Adding a new provider
- Create a class implementing
JishanHoshen\LaravelSms\Contracts\SmsServiceInterface(just one method:send(string $message, string $number): bool). - Add its config block under
providersinconfig/sms.php. - Register it — either add it to
SmsManager::$providerMap, or from your app's own service provider:
No existing code (controllers, jobs, etc.) needs to change when you add or swap providers —
they only ever depend on SmsServiceInterface or the Sms facade.
Notes
- Pass the local number without the country code (e.g.
01712345678); each provider'scountry_codeconfig (default88) is prepended automatically. - Every send attempt and its result is logged via Laravel's
Logfacade, prefixed with the provider name (e.g.[Twilio] SMS sent successfully). - Twilio and Alpha SMS integrations here call their REST APIs directly over HTTP (no extra SDK dependency) — verify against their current docs before production use, since gateway APIs can change.
All versions of laravel-sms with dependencies
illuminate/support Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0|^13.0