PHPackages                             zerkxubas/sparrow-sms-laravel - 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. zerkxubas/sparrow-sms-laravel

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

zerkxubas/sparrow-sms-laravel
=============================

A laravel package for Sparrow SMS integration

v1.0.1(1y ago)010MITPHPPHP ^8.1

Since Mar 1Pushed 1y ago1 watchersCompare

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

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

Sparrow SMS integration package for Laravel
===========================================

[](#sparrow-sms-integration-package-for-laravel)

This package is for Laravel Framework making super easy for developers to integrate the Sparrow SMS into Laravel Application and use instantly. For more details read Official [Sparrow SMS Documentation](https://docs.sparrowsms.com).

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

[](#installation)

**Install this Package** – Using **Composer**.

**Composer Installation**

```
composer require zerkxubas/sparrow-sms-laravel

```

**Sail Installation**

```
sail composer require zerkxubas/sparrow-sms-laravel

```

Publishing The Configurations
-----------------------------

[](#publishing-the-configurations)

```
php artisan vendor:publish --tag=sparrow-sms

```

This will publish **sparrow-sms.php** inside the config directory of your laravel project.

.env Settings
-------------

[](#env-settings)

inside the **.env** file use these below config values for quick setup.

```
SPARROW_SMS_ACCESS_TOKEN=
SPARROW_SMS_FROM=
SPARROW_SMS_BASE_URL=https://api.sparrowsms.com/v2/
SPARROW_SMS_DEBUG_MODE=true

```

**NOTE:** By default for demo accounts the Identity(FROM) is `Demo`.

Quick Examples
--------------

[](#quick-examples)

### Send OTP Message

[](#send-otp-message)

In this method i have made it super simpler &amp; easier to implement &amp; use instantly in laravel projects.

```
// use the namespace
use Zerkxubas\SparrowSmsLaravel\Facades\SparrowSms;

$response = SparrowSms::send($receiver, $message);
```

Get Credit Balance Information
------------------------------

[](#get-credit-balance-information)

This method helps to retrieve credit balance information from sparrow sms server.

```
// use the namespace
use Zerkxubas\SparrowSmsLaravel\Facades\SparrowSms;

$response = SparrowSms::getCreditBalance();

/*
* Usages
*/

// $response->credits_available
// $response->credits_consumed;
// $response->last_balance_added;
// $response->minimum_credit;
// $response->response_code;
```

### Response

[](#response)

```
{
  "credits_available": 10,
  "credits_consumed": 1,
  "last_balance_added": 10,
  "minimum_credit": 1000,
  "response_code": 200
}
```

Verify Credit Balance
---------------------

[](#verify-credit-balance)

This helps to check whether there is sufficient credit available or not. `returns bool`

```
// use the namespace
use Zerkxubas\SparrowSmsLaravel\Facades\SparrowSms;

$creditStatus = SparrowSms::hasCreditBalance();

if ($creditStatus) {
    // Send the OTP or SMS.
}
```

License
-------

[](#license)

This package is open-sourced &amp; free to use licensed under the [MIT license](https://opensource.org/licenses/MIT).

Additional
----------

[](#additional)

Reading Sparrow SMS official documentation is highly recommended as there might be new changes in future so it's crucial for a developer to be updated with the latest changes.

Author
------

[](#author)

[Subash Sharma](https://zerkbro.com)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance44

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

438d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb82de9eb3f5494c5a2b6db1f8abfb09a69b33b019ac45c35f4f2fc07ea95514?d=identicon)[zerkxubas](/maintainers/zerkxubas)

---

Top Contributors

[![zerkxubas](https://avatars.githubusercontent.com/u/58468435?v=4)](https://github.com/zerkxubas "zerkxubas (8 commits)")

---

Tags

phplaravelotpsmsnepalsparrowsparrow sms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zerkxubas-sparrow-sms-laravel/health.svg)

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

###  Alternatives

[tzsk/sms

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

320244.3k6](/packages/tzsk-sms)[ferdous/laravel-otp-validate

Laravel package for OTP validation with built-in features like retry and resend mechanism. Built in max retry and max resend blocking. OTP/Security Code can be send over SMS or Email of your choice with user-defined template.

7124.4k](/packages/ferdous-laravel-otp-validate)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[djunehor/laravel-sms

Send SMS from your laravel application

385.3k1](/packages/djunehor-laravel-sms)[ghanem/laravel-smsmisr

Send SMS and SMS Notification via SMS Misr for Laravel

194.8k](/packages/ghanem-laravel-smsmisr)

PHPackages © 2026

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