magic-systems-io/laravel-notifyre-sms
Composer 安装命令:
composer require magic-systems-io/laravel-notifyre-sms
包简介
A Notifyre wrapper for laravel
README 文档
README
A Laravel package for sending SMS messages through the Notifyre API. Provides direct SMS sending, Laravel notification integration, CLI commands, and REST API endpoints with optional database persistence.
Jumpstart
1) Install
composer require magic-systems-io/laravel-notifyre-sms
2) (Optional) Publish config
php artisan notifyre:publish-config
3) Configure .env
php artisan notifyre:publish-env
Then edit your .env file:
NOTIFYRE_API_KEY=your_api_key_here NOTIFYRE_WEBHOOK_SECRET=your_webhook_secret_here # NOTIFYRE_LOG_LEVEL=debug # Optional: emergency|alert|critical|error|warning|notice|info|debug
4) (Optional) Publish migration
php artisan notifyre:publish-migration
5) Migrate (for persistence)
php artisan migrate
6) Send your first SMS
use MagicSystemsIO\Notifyre\DTO\SMS\Recipient; use MagicSystemsIO\Notifyre\DTO\SMS\RequestBody; use MagicSystemsIO\Notifyre\Enums\NotifyreRecipientTypes; notifyre()->send(new RequestBody( body: 'Hello World!', recipients: [new Recipient(NotifyreRecipientTypes::MOBILE_NUMBER->value, '+1234567890')] ));
Or via Artisan:
php artisan sms:send --message "Hello from Notifyre!" --recipient "+1234567890"
Endpoints (default prefix /api/notifyre)
POST /api/notifyre/sms— Send SMS (201 on acceptance)GET /api/notifyre/sms— List local messages (requires sender on authenticated user)GET /api/notifyre/sms/{id}— Get local messageGET /api/notifyre/sms/notifyre— List via Notifyre API (proxy)GET /api/notifyre/sms/notifyre/{id}— Get via Notifyre API (proxy)POST /api/notifyre/sms/webhook— Delivery callback handler
Commands
php artisan sms:send— Send SMSphp artisan sms:list— List/filter SMS (see--help)php artisan notifyre:publish*— Publish config/env snippets
Logging
The package creates a dedicated log channel (notifyre) that:
- Respects
APP_DEBUG- defaults toinfoin production,debugin development - Can be customized via
NOTIFYRE_LOG_LEVELin.env - Falls back to your app's
LOG_LEVELif set - Logs to
storage/logs/notifyre_sms.log(or.logfiles based on your default channel config)
Requirements
- PHP 8.3+
- Laravel 12.20+
- Notifyre API account (for
smsdriver)
Docs
See the full documentation: README.
License
MIT License — see LICENSE.
Contributing
See CONTRIBUTING .
Support
Troubleshooting
Provider not auto-discovered? If the package isn't working, manually register it in bootstrap/providers.php:
return [ // Other Service Providers... MagicSystemsIO\Notifyre\Providers\NotifyreServiceProvider::class, ];
Made with ❤️ by Magic Systems
magic-systems-io/laravel-notifyre-sms 适用场景与选型建议
magic-systems-io/laravel-notifyre-sms 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 32 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 09 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「sms」 「laravel」 「notifyre」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 magic-systems-io/laravel-notifyre-sms 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 magic-systems-io/laravel-notifyre-sms 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 magic-systems-io/laravel-notifyre-sms 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
SDK for payment gateway PlatbaMobilom.sk for PHP7.0
Extensible library for building notifications and sending them via different delivery channels.
yii2-sms expand
Alfabank REST API integration
A fork of simplesoftwareio/simple-sms with Verimor driver.
Aakash Sms Provider Api Wrapper
统计信息
- 总下载量: 32
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-03