tmoh/nimba-sms
最新稳定版本:1.0.2
Composer 安装命令:
composer require tmoh/nimba-sms
包简介
Laravel package for NIMBA SMS API integration
README 文档
README
Laravel package for NIMBA SMS API integration.
📖 Official Documentation: NIMBA SMS API Documentation
Installation
composer require tmoh/nimba-sms
Configuration
Publish config:
php artisan vendor:publish --provider="Tmoh\NimbaSms\NimbaSmsServiceProvider" --tag="config"
Add to .env:
NIMBA_SMS_BASE_URL=https://api.nimbasms.com NIMBA_SMS_SERVICE_ID=your_service_id NIMBA_SMS_SERVICE_SECRET=your_service_secret NIMBA_SMS_DEFAULT_SENDER_NAME=NIMBA NIMBA_SMS_TIMEOUT=30
Usage
use Tmoh\NimbaSms\Facades\NimbaSms; try { // Send SMS $response = NimbaSms::sendSms('623123456', 'Hello World!'); // Get account info $account = NimbaSms::getAccounts(); // Get sender names $senderNames = NimbaSms::getSenderNames(); // Get webhooks $webhooks = NimbaSms::getWebhooks(); // Get purchases $purchases = NimbaSms::getPurchases(); } catch (Exception $e) { echo $e->getMessage(); }
License
MIT
统计信息
- 总下载量: 331
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-12