PHPackages                             teaminfinitydev/laravel-sms-notify - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. teaminfinitydev/laravel-sms-notify

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

teaminfinitydev/laravel-sms-notify
==================================

Laravel Notify.lk SMS Gateway Integration

1.0.2(10mo ago)1081MITPHPPHP ^8.1|^8.2|^8.3CI passing

Since Jul 2Pushed 6mo ago3 watchersCompare

[ Source](https://github.com/ChamikaSamaraweera/laravel-sms-notify)[ Packagist](https://packagist.org/packages/teaminfinitydev/laravel-sms-notify)[ Fund](https://www.buymeacoffee.com/teaminfinity)[ GitHub Sponsors](https://github.com/ChamikaSamaraweera)[ RSS](/packages/teaminfinitydev-laravel-sms-notify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Laravel SMS Notify
==================

[](#laravel-sms-notify)

[![Latest Version on Packagist](https://camo.githubusercontent.com/00884323d54e393ffc8f0f893b1a4b9c7058874afae7eefff4e1fabf4a8336c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7465616d696e66696e6974796465762f6c61726176656c2d736d732d6e6f746966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/teaminfinitydev/laravel-sms-notify)[![GitHub Tests Action Status](https://github.com/teaminfinitydev/laravel-sms-notify/actions/workflows/tests.yml/badge.svg)](https://github.com/teaminfinitydev/laravel-sms-notify/actions/workflows/tests.yml)[![Total Downloads](https://camo.githubusercontent.com/c0eef7b629903de333af343f3a36f2a6ddf50657281e41c7253ee2e10d07bf2a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7465616d696e66696e6974796465762f6c61726176656c2d736d732d6e6f746966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/teaminfinitydev/laravel-sms-notify)[![License](https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e)](https://packagist.org/packages/teaminfinitydev/laravel-sms-notify)

Laravel package for Notify.lk SMS Gateway Integration

Requirements
------------

[](#requirements)

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

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require teaminfinitydev/laravel-sms-notify
```

Configuration
-------------

[](#configuration)

1. Publish the configuration file:

```
php artisan vendor:publish --provider="TeamInfinityDev\SmsNotify\SmsNotifyServiceProvider"
```

2. 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

[](#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
-----

[](#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-compatibility)

Laravel VersionPackage VersionPHP Version Required9.x^1.1^8.1, ^8.2, ^8.310.x^1.1^8.1, ^8.2, ^8.311.x^1.1^8.2, ^8.312.x^1.1^8.2, ^8.3Features
--------

[](#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
---------------

[](#troubleshooting)

### Common Issues

[](#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
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

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

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance65

Regular maintenance activity

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

311d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a3cc9dd67c18b24d3e1be0af4b01945b9bc7687ae1467225e3ecaf7836a6253?d=identicon)[ChamikaSamaraweera](/maintainers/ChamikaSamaraweera)

---

Top Contributors

[![DCComplex](https://avatars.githubusercontent.com/u/161657580?v=4)](https://github.com/DCComplex "DCComplex (36 commits)")[![ChamikaSamaraweera](https://avatars.githubusercontent.com/u/163977973?v=4)](https://github.com/ChamikaSamaraweera "ChamikaSamaraweera (4 commits)")

---

Tags

laravellaravel-sms-notificationssmssmsgateway

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/teaminfinitydev-laravel-sms-notify/health.svg)

```
[![Health](https://phpackages.com/badges/teaminfinitydev-laravel-sms-notify/health.svg)](https://phpackages.com/packages/teaminfinitydev-laravel-sms-notify)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/fcm

FCM (Firebase Cloud Messaging) Notifications Driver for Laravel

5917.0M16](/packages/laravel-notification-channels-fcm)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
