承接 teaminfinitydev/laravel-sms-notify 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

teaminfinitydev/laravel-sms-notify

Composer 安装命令:

composer require teaminfinitydev/laravel-sms-notify

包简介

Laravel Notify.lk SMS Gateway Integration

README 文档

README

Latest Version on Packagist GitHub Tests Action Status Total Downloads License

Laravel package for Notify.lk SMS Gateway Integration

Requirements

  • PHP 8.1, 8.2, or 8.3
  • Laravel 9.x, 10.x, 11.x, or 12.x

Installation

You can install the package via composer:

composer require teaminfinitydev/laravel-sms-notify

Configuration

  1. Publish the configuration file:
php artisan vendor:publish --provider="TeamInfinityDev\SmsNotify\SmsNotifyServiceProvider"
  1. Add the following variables to your .env file:
# Required Configuration
NOTIFI_USER_ID=your-user-id
NOTIFI_API_KEY=your-api-key
NOTIFI_SENDER_ID=your-sender-id

# Optional Configuration
NOTIFI_API_URL=https://app.notify.lk/api/v1
NOTIFI_TIMEOUT=30
NOTIFI_CONNECT_TIMEOUT=10
NOTIFI_SSL_VERIFY=true
NOTIFI_RETRY_ATTEMPTS=3
NOTIFI_RETRY_DELAY=1

# Development/Testing Configuration
NOTIFI_MOCK_RESPONSES=false
NOTIFI_LOG_REQUESTS=false

For Local Development

If you're having SSL or connection issues in local development, add these to your .env:

# Disable SSL verification for local development
NOTIFI_SSL_VERIFY=false

# Enable request logging for debugging
NOTIFI_LOG_REQUESTS=true

# Use mock responses for testing without API calls
NOTIFI_MOCK_RESPONSES=true

Usage

use TeamInfinityDev\SmsNotify\Services\NotifyService;

$notifyService = new NotifyService();

// Send to single number
$response = $notifyService->send('771234567', 'Your message here');

// Send to multiple numbers
$response = $notifyService->send(['771234567', '772345678'], 'Your message here');

// Response format
[
    'success' => true,
    'data' => [
        'message_id' => 'xxx',
        'status' => 'queued'
    ],
    'status_code' => 200
]

Laravel Version Compatibility

Laravel Version Package Version PHP Version Required
9.x ^1.1 ^8.1, ^8.2, ^8.3
10.x ^1.1 ^8.1, ^8.2, ^8.3
11.x ^1.1 ^8.2, ^8.3
12.x ^1.1 ^8.2, ^8.3

Features

  • Send SMS to single or multiple numbers
  • Automatic phone number formatting
  • Configurable retry attempts
  • Exception handling
  • Comprehensive testing
  • Support for Laravel 9, 10, 11, and 12
  • SSL verification control for local development
  • Request logging for debugging
  • Mock responses for testing
  • Connection timeout and retry configuration
  • Detailed error handling for network issues

Troubleshooting

Common Issues

  1. "Could not resolve host" error in local development:

    NOTIFI_SSL_VERIFY=false
  2. Connection timeout issues:

    NOTIFI_TIMEOUT=60
    NOTIFI_CONNECT_TIMEOUT=30
  3. Enable debugging:

    NOTIFI_LOG_REQUESTS=true
  4. Test without real API calls:

    NOTIFI_MOCK_RESPONSES=true

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.

teaminfinitydev/laravel-sms-notify 适用场景与选型建议

teaminfinitydev/laravel-sms-notify 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 10, 最近一次更新时间为 2025 年 07 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 teaminfinitydev/laravel-sms-notify 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 teaminfinitydev/laravel-sms-notify 我们能提供哪些服务?
定制开发 / 二次开发

基于 teaminfinitydev/laravel-sms-notify 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-01