PHPackages                             ngarak-dev/nextsms - 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. ngarak-dev/nextsms

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

ngarak-dev/nextsms
==================

A Laravel package to send SMS using NextSMS API. Basically a folk from https://github.com/omakei with updated packages support for laravel 10 and 11

v1.0.1(2y ago)032PHPPHP ^8.1

Since Apr 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ngarak-dev/nextsms)[ Packagist](https://packagist.org/packages/ngarak-dev/nextsms)[ RSS](/packages/ngarak-dev-nextsms/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (16)Versions (3)Used By (0)

NextSMS
=======

[](#nextsms)

A Laravel package to send SMS using NextSMS API. Basically a folk from  with updated packages support for laravel 10 and 11

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

[](#installation)

You can install the package via composer:

```
composer require ngarak-dev/nextsms
```

The following keys must be available in your `.env` file:

```
NEXTSMS_USERNAME=
NEXTSMS_PASSWORD=
NEXTSMS_SENDER_ID=
```

Usage
-----

[](#usage)

### Send SMS

[](#send-sms)

#### NB: Telephone Number Must Start with Valid Country Code. Example: 255768491010

[](#nb-telephone-number-must-start-with-valid-country-code-example-255768491010)

Sending single sms to single destination:

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::sendSingleSMS(['to' => '25500000000', 'text' => 'Hellooooo Next.']);
```

Sending single sms to multiple destinations:

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::sendSingleSMSToMultipleDestination([
            'to' => ['255000000000','255111111111'],
            'text' => 'Helooooo.']);
```

Sending multiple sms to multiple destinations (Example 1):

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::sendMultipleSMSToMultipleDestinations(['messages' => [
                ['to' => '255000000000', 'text' => 'Helooo Next.'],
                ['to' => '255111111111', 'text' => 'Helooo Next.']
            ]]);
```

Sending multiple sms to multiple destinations (Example 2):

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::sendMultipleSMSToMultipleDestinations(['messages' => [
                ['to' => ['25500000000','25500000000'], 'text' => 'Heloooooooo.'],
                ['to' => '25500000000', 'text' => 'Heloooooooo.']
            ]]);
```

Schedule sms:

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::scheduleSMS([
            'to' => '25500000000',
            'text' => 'Heloooooooo.',
            'date' => '2022-01-25' ,
            'time' => '12:00']);
```

### SMS Delivery Reports

[](#sms-delivery-reports)

Get all delivery reports:

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::getAllDeliveryReports();
```

Get delivery reports with messageId:

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::getDeliveryReportWithMessageId(243452542526627);
```

Get delivery reports with messageId:

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::getDeliveryReportWithSpecificDateRange('2022-01-25', '2022-01-29');
```

### Sent Sms Logs

[](#sent-sms-logs)

Get all sent SMS logs:

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::getAllSentSMSLogs(10, 5);
```

Get all sent SMS logs with the optional parameter:

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::getAllSentSMSLogsWithOptionalParameter('255000000000','2022-01-25', '2022-01-29',10, 5);
```

### Sub Customer

[](#sub-customer)

Register Sub Customer:

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::subCustomerCreate(
            'Michael',
            'Juma',
            'test@gmail.com',
            '062500000000',
            'Sub Customer (Reseller)',
            100);
```

Recharge customer:

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::subCustomerRecharge('otest@gmail.com', 100);
```

Deduct a customer:

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::subCustomerDeduct('test@gmail.com', 100);
```

Get sms balance:

```
use NgarakDev\NextSMS\NextSMS;

$response = NextSMS::getSMSBalance();
```

NextSMS API Documentation
-------------------------

[](#nextsms-api-documentation)

Please see [NextSMS Developer API](https://documenter.getpostman.com/view/4680389/SW7dX7JL#2936eed4-6027-45e7-92c9-fe1cd7df140b) for more details.

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~0 days

Total

2

Last Release

814d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26841409?v=4)[Ngara Wambura](/maintainers/ngarak-dev)[@ngarak-dev](https://github.com/ngarak-dev)

---

Top Contributors

[![ngarak-dev](https://avatars.githubusercontent.com/u/26841409?v=4)](https://github.com/ngarak-dev "ngarak-dev (3 commits)")

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ngarak-dev-nextsms/health.svg)

```
[![Health](https://phpackages.com/badges/ngarak-dev-nextsms/health.svg)](https://phpackages.com/packages/ngarak-dev-nextsms)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[nativephp/mobile

NativePHP for Mobile

1.1k75.1k91](/packages/nativephp-mobile)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.8k3](/packages/defstudio-telegraph)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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