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 today

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

Maintenance46

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

419d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/41978435?v=4)[Bibek Shrestha](/maintainers/bibekstha75)[@bibekstha75](https://github.com/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

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[nativephp/mobile

NativePHP for Mobile

1.1k75.1k93](/packages/nativephp-mobile)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

43311.2k](/packages/venturedrake-laravel-crm)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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