Download the PHP package openbackend/nepali-sms without Composer
On this page you can find all versions of the php package openbackend/nepali-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openbackend/nepali-sms
More information about openbackend/nepali-sms
Files in openbackend/nepali-sms
Package nepali-sms
Short Description A comprehensive Laravel package for integrating popular Nepali SMS gateways including Sparrow SMS, Sparrow A2P, Ebeema, EasySMS and more
License MIT
Homepage https://github.com/openbackend/laravel-nepali-sms
Informations about the package nepali-sms
Laravel Nepali SMS Gateway Integrator
A comprehensive Laravel package for integrating popular Nepali SMS gateways with advanced features like OTP verification, bulk messaging, delivery tracking, and more.
Supported SMS Gateways
- Sparrow SMS - Popular SMS gateway in Nepal
- Sparrow A2P - Application-to-Person messaging
- Ebeema SMS - Reliable SMS service provider
- EasySMS - Simple SMS integration
- SMS24x7 - 24/7 SMS service
- Custom Gateway - Add your own SMS provider
Features
- 🚀 Multiple Gateway Support - Switch between different SMS providers
- 📱 OTP Generation & Verification - Built-in OTP system with expiration
- 📊 Delivery Tracking - Track message delivery status
- 🔄 Queue Support - Send SMS asynchronously using Laravel queues
- 📈 Bulk Messaging - Send messages to multiple recipients
- 🎯 Template Support - Pre-defined message templates
- 📝 Logging - Comprehensive logging for debugging
- 🔒 Rate Limiting - Prevent abuse with configurable rate limits
- 📊 Analytics - SMS sending statistics and reports
- 🌐 Multi-language - Support for English and Nepali text
- 🔄 Failover - Automatic fallback to backup gateways
- 📱 Laravel Notifications - Integration with Laravel notification system
Requirements
- PHP 8.1 or higher
- Laravel 10.0 or higher (supports Laravel 12)
Installation
Install the package via Composer:
Publish the configuration file:
Run the migrations to create necessary tables:
Configuration
Configure your SMS gateways in config/nepali-sms.php:
Add your gateway credentials to .env:
Basic Usage
Sending a Simple SMS
Sending Bulk SMS
OTP Generation and Verification
Using Templates
Queue Support
Advanced Features
Laravel Notifications Integration
Create a notification class:
Send notification:
Delivery Tracking
Analytics and Reports
Rate Limiting
Failover Support
Artisan Commands
Test SMS Gateway
Generate OTP
Verify OTP
View Statistics
Clear Old SMS Logs
Events
The package fires several events that you can listen to:
MessageSending- Before sending SMSMessageSent- After SMS is sent successfullyMessageFailed- When SMS sending failsOtpGenerated- When OTP is generatedOtpVerified- When OTP is verifiedOtpExpired- When OTP expires
Example listener:
Testing
Run the test suite:
Run tests with coverage:
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING.md for details.
License
The MIT License (MIT). Please see License File for more information.
Credits
- Rudra Ramesh
- OpenBackend
- All Contributors
Support
All versions of nepali-sms with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/queue Version ^10.0|^11.0|^12.0
illuminate/notifications Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0