A simple Laravel package to send SMS messages using the SMPP protocol, built on top of alexandr-mironov/php8-smpp.
- Laravel-ready SMPP client
- Reads SMPP config from
.env
- Clean service-based architecture
- Exception-driven error handling
composer require isadma/laravel-smpp
Add the following to your .env
file:
SMPP_IP=ip_address
SMPP_PORT=port_number
SMPP_FROM=your_short_number
SMPP_USERNAME=your_smpp_username
SMPP_PASSWORD=your_smpp_password
The published config file will be available at: config/smpp.php
.
You can use the Facade for cleaner syntax:
use Smpp;
SmppService::sendMessage('9936XXXXXXX', 'Your message');
This package is open-sourced software licensed under the MIT license.