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

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

filbertmsaki/nextsms
====================

Package to send message to the users using Next-SMS with Laravel

v1.0.1(4y ago)040MITPHP

Since Jan 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/filbertmsaki/nextsms-laravel-package)[ Packagist](https://packagist.org/packages/filbertmsaki/nextsms)[ RSS](/packages/filbertmsaki-nextsms/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Next Sms Laravel Package
========================

[](#next-sms-laravel-package)

With this package you can send sms, check sms balance and get delivery report of single or all sms.

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

[](#installation)

You can install the package via composer:

```
  composer require filbertmsaki/nextsms
```

Environment Variables
---------------------

[](#environment-variables)

To run this project, you will need to add the following environment variables to your .env file

`NEXT_SMS_USERNAME=filbertmsaki`

`NEXT_SMS_PASSWORD=******`

`NEXT_SMS_SENDER_ID=N-SMS`

Publish the required file
-------------------------

[](#publish-the-required--file)

```
  php artisan vendor:publish --provider="Filbertmsaki\Nextsms\NextSmsServiceProvider"
```

Usage
-----

[](#usage)

use the below dependancy in your controller

```
  use Filbertmsaki\Nextsms\NextSms;
```

Send sms to single number
-------------------------

[](#send-sms-to-single-number)

```
     public function send_single_sms(){
            $message= 'Test Message';
        //Call the Next Sms Class
            $sms = new NextSms();
        //Send sms to single number
            $phonenumber= '255**********';
            $data= $sms->sendSingleSms( $phonenumber,$message);
        return  $data;
    }

```

Send to multiple number
-----------------------

[](#send-to-multiple-number)

```
     public function send_single_sms(){
            $message= 'Test Message';
        //Call the Next Sms Class
            $sms = new NextSms();
        //Send sms to single number
            $arraynumber= ["2557*********","255**********","255**********","255**********","255**********"];
            $data= $sms->sendMultipleSms( $arraynumber,$message);
        return  $data;

    }
```

Sms Balance
-----------

[](#sms-balance)

```

    public function sms_balance(){
        //Get the remein balance of the sms from the dashboard
            $sms = new NextSms();
            $delivery_report= $sms->getSmsBalance();
            return $delivery_report;
    }
```

All Sms Delivery report
-----------------------

[](#all-sms-delivery-report)

```

    public function all_sms_delivery_report(){
        //Get delivery report of all sms
            $sms = new NextSms();
            $delivery_report= $sms->getAllSmsDeliveryreports();
            return $delivery_report;
    }
```

Single Sms Delivery Report
--------------------------

[](#single-sms-delivery-report)

```

    public function single_sms_delivery_report(){
        //Get delivery report of single sms
            $messageId = '34329702767301630304';
            $sms = new NextSms();
            $delivery_report= $sms->getSingleSmsDeliveryReport($messageId);
            return $delivery_report;
    }

```

Delivery Report By Date Range
-----------------------------

[](#delivery-report-by-date-range)

```

     public function delivery_report_by_date_range(){
        //Get delivery report by using date range
        //Date format is yyyy-mm-dd
        $startDate='2022-01-26';
        $endDate='2022-01-27';
        $sms = new NextSms();
        $delivery_report= $sms->getSmsDeliveryreportsByDateRange($startDate,$endDate);
        return $delivery_report;
    }
```

Authors
-------

[](#authors)

- [@filbertmsaki](https://github.com/filbertmsaki)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

1570d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f6bb0b83e892e6d157a30d7d834c7ce8582933fd1035b8b6ce82676bfcf1328?d=identicon)[filbertmsaki](/maintainers/filbertmsaki)

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

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

PHPackages © 2026

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