PHPackages                             thebikramlama/sparrow - 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. thebikramlama/sparrow

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

thebikramlama/sparrow
=====================

Laravel Package to send SMS via Sparrow SMS

1.0.6(4y ago)184996MITPHPPHP ^7.0|^8.0

Since Feb 28Pushed 4y ago2 watchersCompare

[ Source](https://github.com/TheBikramLama/sparrow)[ Packagist](https://packagist.org/packages/thebikramlama/sparrow)[ GitHub Sponsors](https://github.com/TheBikramLama)[ RSS](/packages/thebikramlama-sparrow/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (9)Used By (0)

Sparrow SMS Laravel Package
===========================

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

[![Latest Version](https://camo.githubusercontent.com/b2144119e06c3b8caa5b07873b5cc66df641d677d79d37b3ca90fac838e11a98/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f54686542696b72616d4c616d612f73706172726f772e7376673f7374796c653d666c61742d737175617265)](https://github.com/TheBikramLama/sparrow/releases)[![Issues](https://camo.githubusercontent.com/29bfc2ae0ee85c25d3fbd1b2ff7191a2599ea3ce7a47caa124ca157c8a2b16f8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f54686542696b72616d4c616d612f73706172726f77)](https://camo.githubusercontent.com/29bfc2ae0ee85c25d3fbd1b2ff7191a2599ea3ce7a47caa124ca157c8a2b16f8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f54686542696b72616d4c616d612f73706172726f77)[![Downloads](https://camo.githubusercontent.com/a3a4b3b4d1c7fe501954b319bd661a54232235da14461177230d929dcc75d147/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f54686542696b72616d4c616d612f73706172726f772e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thebikramlama/sparrow)

Sparrow SMS Laravel Package can be used to send SMS via Sparrow SMS or query account's credits.

Getting Started
---------------

[](#getting-started)

This package can be installed through Composer.

```
composer require thebikramlama/sparrow
```

Publish `sparrow.php` config file for customization

```
php artisan vendor:publish --provider="Thebikramlama\Sparrow\SparrowServiceProvider"
```

How to send an SMS
------------------

[](#how-to-send-an-sms)

After the installation is complete, `Sparrow` alias is generated by default.

### Using the default Alias

[](#using-the-default-alias)

```
// Using Default
use Sparrow;
```

### Send an SMS

[](#send-an-sms)

```
$from = 'InfoSms'; // Setting FROM provided by Sparrow
$access_token = 'YOUR_ACCESS_TOKEN'; // Setting Access Token provided by Sparrow

$to = '9801234567'; // Setting Phone Number
$message = 'Test message from Sparrow.'; // Setting Message

// Send the message
$sms_message = Sparrow::send($to, $message, $from, $access_token);
// This will return a pseudo JSON response, you will need to json_decode it.
```

Getting available Credits
-------------------------

[](#getting-available-credits)

```
$access_token = 'YOUR_ACCESS_TOKEN'; // Setting Access Token provided by Sparrow

// Query Credits
$credits = Sparrow::credits($access_token);
echo 'Available credits: '. json_decode($credits)->credits_available; // Available credits: 1500
```

Customization
-------------

[](#customization)

Make sure you have published `sparrow.php` config file

```
php artisan vendor:publish --provider="Thebikramlama\Sparrow\SparrowServiceProvider"
```

You can find the `sparrow.php` config file under `config/sparrow.php` inside your laravel project.

You can edit the file as per your need.

```
// Your Sparrow SMS Access Token here.
'access_token' => 'YOUR_ACCESS_TOKEN',
// Identity Provided by Sparrow SMS
'from' => 'FROM',
```

After updating the `sparrow.php` config file you can call `Sparrow` methods with lesser arguments.

Example:

```
$sms_message = Sparrow::send('98081234567', 'Test Messsage'); // From and Access token are optional
$credits = Sparrow::credits(); // Access token is optional
```

Credits
-------

[](#credits)

- [Bikram Lama](https://github.com/TheBikramLama)

License
-------

[](#license)

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

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~66 days

Recently: every ~116 days

Total

8

Last Release

1799d ago

Major Versions

v0.0.1 → v1.0.02020-02-28

PHP version history (2 changes)v0.0.1PHP ^7.0

1.0.6PHP ^7.0|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c05a364e18151394af73ae4905653a0072e4980ce6583c3fb634d55ad494929?d=identicon)[TheBikramLama](/maintainers/TheBikramLama)

---

Top Contributors

[![TheBikramLama](https://avatars.githubusercontent.com/u/47409497?v=4)](https://github.com/TheBikramLama "TheBikramLama (12 commits)")

---

Tags

laravelnepalphpsparrowsparrow-smssparrow-sms-laravelsparrowsms

### Embed Badge

![Health badge](/badges/thebikramlama-sparrow/health.svg)

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

###  Alternatives

[minishlink/web-push

Web Push library for PHP

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

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[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)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)

PHPackages © 2026

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