isadma / laravel-smpp
Laravel package to send SMS using SMPP
v1.0.0
2025-05-12 11:54 UTC
Requires
- php: ^8.0
- alexandr-mironov/php-smpp: ^1.0
README
A simple Laravel package to send SMS messages using the SMPP protocol, built on top of alexandr-mironov/php-smpp.
🚀 Features
- Laravel-ready SMPP client
- Reads SMPP config from
.env
- Clean service-based architecture
- Exception-driven error handling
📦 Installation
Step 1: Require the package
composer require isadma/laravel-smpp
Step 2: Publish the configuration
php artisan vendor:publish --tag=config
⚙️ Configuration
Add the following to your .env
file:
SMPP_IP=ip_address SMPP_PORT=2775 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
.
💡 Usage
You can use the Facade for cleaner syntax:
use Smpp; Smpp::sendMessage('9936XXXXXXX', 'Your message');
📄 License
This package is open-sourced software licensed under the MIT license.