Download the PHP package kstmostofa/laravel-smpp without Composer
On this page you can find all versions of the php package kstmostofa/laravel-smpp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kstmostofa/laravel-smpp
More information about kstmostofa/laravel-smpp
Files in kstmostofa/laravel-smpp
Package laravel-smpp
Short Description A Laravel package for sending SMS using the SMPP protocol, built on top of the PHP-SMPP library. This package provides a simple and efficient way to integrate SMS functionality into your Laravel applications.
License MIT
Homepage https://github.com/kstmostofa/laravel-smpp
Informations about the package laravel-smpp
Laravel SMPP
A modern Laravel-friendly wrapper around an SMPP v3.4 client for sending and receiving SMS, with delivery receipt (DLR) support, connection management, and extensible listener patterns.
Features
- Send single or concatenated (long) SMS (GSM 03.38 / UCS-2)
- Request and parse Delivery Receipts (DLRs)
- Receive MO (mobile originated) messages
- Transmitter / Receiver / Transceiver bind modes
- Auto DNS resolution, IPv4 / IPv6 (with force flags)
- Custom timeouts & non-blocking connect with fallback
- Clean Laravel Facade API
- You create your own long‑running DLR listener (example provided)
Installation
Auto-discovery registers the service provider and facade.
Configuration
Publish config:
config/smpp.php:
Quick Send Example
Creating Your Own DLR / MO Listener
DLRs and MO messages are asynchronous. Implement a custom Artisan command that keeps a persistent bind and loops reading PDUs.
1. Make a Command
2. Implement Logic (app/Console/Commands/SmppReceive.php)
3. Run Listener
Manage via Supervisor/systemd for production.
Runtime Config Override
Forcing IPv4 / IPv6
Debugging
Set SMPP_DEBUG=true or pass --debug. Debug output uses error_log.
Troubleshooting
| Issue | Tip |
|---|---|
| Could not connect / Operation now in progress | Check firewall, force IPv4, correct host/port |
| Bind Failed | Verify credentials, system type permissions |
| No DLR | Ensure requestDLR() chained & listener running |
| Truncated >160 chars | Library segments automatically if GSM/UCS2; verify data_coding |
| Stuck/slow | Increase timeout, verify network latency |
Contributing
PRs welcome (tests + README update).
License
MIT
All versions of laravel-smpp with dependencies
ext-sockets Version *
ext-mbstring Version *
illuminate/support Version ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0