PHPackages                             bibekshrestha/sparrow-sms - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bibekshrestha/sparrow-sms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bibekshrestha/sparrow-sms
=========================

A Laravel package for sending SMS using Sparrow SMS service.

v1.0.1(1y ago)010MITPHPPHP ^7.4|^8.0

Since Jan 5Pushed 1y ago1 watchersCompare

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

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

Sparrow SMS Integration Package
===============================

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

The **Sparrow SMS Integration Package** provides a simple and easy way to send SMS messages in your Laravel applications. With this package, you can integrate Sparrow SMS services into your Laravel project, manage SMS configurations, and interact with the Sparrow SMS API.

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

[](#installation)

To install the package, run the following command in your Laravel project:

```
composer require bibekshrestha/sparrow-sms
```

Service Provider
----------------

[](#service-provider)

### Automatic Discovery

[](#automatic-discovery)

Laravel uses **Package Auto-Discovery**, so the service provider will be automatically discovered when you install the package. You do not need to manually add the provider in most cases.

### Manual Discovery

[](#manual-discovery)

If auto-discovery does not work for any reason, you can manually add the service provider to your `config/app.php` file. Add the following line to the `providers` array:

```
'providers' => [
    // Other providers...
    BibekShrestha\SparrowSms\SparrowSmsServiceProvider::class,
],
```

### Laravel Version Compatibility

[](#laravel-version-compatibility)

- Laravel 8.x, 9.x, 10.x

Configuration
-------------

[](#configuration)

After installing the package, publish the configuration file using the following Artisan command:

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

This will create a `sparrow-sms.php` file in your `config` directory. Open this file and add your **Sparrow SMS** credentials.

```
return [
    'token' => env('SPARROW_SMS_TOKEN'),
    'from' => env('SPARROW_SMS_FROM', 'TheAlert'),
    'url' => env('SPARROW_SMS_URL'),
    'credit_url' => env('SPARROW_SMS_CREDIT_URL'),
    'enable_logging' => env('SPARROW_SMS_ENABLE_LOGGING', false),
];
```

Make sure to set the following values in your `.env` file:

```
SPARROW_SMS_ENABLE_LOGGING=true
SPARROW_SMS_TOKEN=your_api_token
SPARROW_SMS_URL= https://api.sparrowsms.com/v2/sms/
SPARROW_SMS_CREDIT_URL=https://api.sparrowsms.com/v2/credit/
```

Example Usage
-------------

[](#example-usage)

### Sending to a Single Recipient

[](#sending-to-a-single-recipient)

```
use SparrowSms;

$data = [
    'recipient_number' => '1234567890', // Single recipient number
    'message' => 'Hello, this is a test message.',
];

SparrowSms::send($data);
```

### Sending to Multiple Recipients

[](#sending-to-multiple-recipients)

```
use SparrowSms;

$data = [
    'recipient_numbers' => ['recipient_phone_number_1', 'recipient_phone_number_2'], // Multiple recipient numbers
    'message' => 'Hello, this is a test message to multiple recipients.',
];

SparrowSms::sendBulk($data);
```

Error Handling
--------------

[](#error-handling)

- The function checks if both `recipient_number` and `message` are provided in the `$data` array. If not, an exception is thrown.
- If the API request fails, the function logs the error and throws an exception with the error message.

License
-------

[](#license)

This package is open-source and available under the [MIT License](LICENSE).

Contributing
------------

[](#contributing)

We welcome contributions to improve this package. If you'd like to contribute, please fork the repository and submit a pull request with your changes.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance50

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Total

2

Last Release

366d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/544b55f27a93565900457ed8bb3022c61f9b4fcc03ba2951462acd8eb87d88cd?d=identicon)[bibekstha75](/maintainers/bibekstha75)

---

Top Contributors

[![bibekstha75](https://avatars.githubusercontent.com/u/41978435?v=4)](https://github.com/bibekstha75 "bibekstha75 (9 commits)")

---

Tags

laravelsmsbulk-smsSMS Servicesparrow

### Embed Badge

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

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

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[tzsk/sms

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

320244.3k6](/packages/tzsk-sms)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[adrianorosa/laravel-geolocation

Laravel Geo Location package to get details for a given IP Address

6593.3k1](/packages/adrianorosa-laravel-geolocation)

PHPackages © 2026

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