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(5y ago)185046MITPHPPHP ^7.0|^8.0CI failing

Since Feb 28Pushed 5y 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 today

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 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

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

1855d 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://avatars.githubusercontent.com/u/47409497?v=4)[Bikram Lama](/maintainers/TheBikramLama)[@TheBikramLama](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M45](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[guanguans/notify

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

687114.3k8](/packages/guanguans-notify)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

254168.5k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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