karnoweb/sms-sender
最新稳定版本:v1.0.0
Composer 安装命令:
composer require karnoweb/sms-sender
包简介
A fluent SMS manager for Laravel with multi-driver support and automatic failover.
README 文档
README
A fluent SMS manager for Laravel with multi-driver support and automatic failover.
✨ Features
- 🔗 Fluent API — Chainable, readable interface
- 🔄 Auto Failover — Automatic switch between SMS providers
- 📝 Logging — Every attempt logged to database
- 📊 Delivery Reports — Check message delivery status
- 🔌 Extensible — Add custom drivers with a single interface
- ⚙️ Usage Control — Daily/monthly limits per driver
🚀 Quick Start
composer require karnoweb/sms-sender php artisan vendor:publish --tag=sms-config php artisan vendor:publish --tag=sms-migrations php artisan migrate
use Karnoweb\SmsSender\Facades\Sms; use Karnoweb\SmsSender\Enums\SmsTemplateEnum; // Simple message Sms::message('Hello World') ->number('09120000000') ->send(); // OTP Sms::otp(SmsTemplateEnum::LOGIN_OTP) ->input('code', '1234') ->number('09120000000') ->send(); // Multiple recipients Sms::message('Announcement') ->numbers(['09121111111', '09122222222']) ->send(); // Check delivery status $results = Sms::number('09120000000')->checkStatus();
📖 Documentation
Full documentation is available in the docs/ directory.
| # | Topic |
|---|---|
| 01 | Overview |
| 02 | Installation |
| 03 | Configuration |
| 04 | Basic Usage |
🧪 Testing
./vendor/bin/phpunit
📄 License
MIT License. See LICENSE for details.
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-14