PHPackages                             devfaysal/laravel-muthofun-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. [API Development](/categories/api)
4. /
5. devfaysal/laravel-muthofun-sms

ActiveLibrary[API Development](/categories/api)

devfaysal/laravel-muthofun-sms
==============================

Simple Laravel wrapper for MuthoFun SMS Gateway API

1.3(5mo ago)4642↓33.3%1MITPHPPHP ^7.3|^8.0

Since Jun 1Pushed 5mo agoCompare

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

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

Laravel Muthofun SMS
====================

[](#laravel-muthofun-sms)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1edbae3c7186164ad561e6e97f5e994855e318634b381e2552654ad41007f1cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64657666617973616c2f6c61726176656c2d6d7574686f66756e2d736d732e737667)](https://packagist.org/packages/devfaysal/laravel-muthofun-sms)[![Total Downloads](https://camo.githubusercontent.com/388583437db40436e2744dab48f31e0ec84bf518f8def4a4c9b0359053e6c091/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64657666617973616c2f6c61726176656c2d6d7574686f66756e2d736d732e737667)](https://packagist.org/packages/devfaysal/laravel-muthofun-sms)

Simple Laravel wrapper for MuthoFun SMS Gateway API

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

[](#installation)

```
composer require devfaysal/laravel-muthofun-sms
```

Optionally Publish Config File

```
php artisan vendor:publish --provider="Devfaysal\Muthofun\MuthofunServiceProvider"
```

Set API key
-----------

[](#set-api-key)

Copy the api key from  and add to the .env file.
Example: `MUTHOFUN_API_KEY="Token 1f2d5f6e9e9e8r5d5s5s6f9f"`

Upgrade Guide
-------------

[](#upgrade-guide)

If you were using the old API, follow the steps to upgrade

- If you publised the config file, republish the config file `php artisan vendor:publish --provider="Devfaysal\Muthofun\MuthofunServiceProvider" --force `
- Remove old username and password from config or .env file
- add new api key to the .env file

Use
---

[](#use)

**Send SMS to Single recipient**

```
use Devfaysal\Muthofun\Facades\Muthofun;

Muthofun::send('01717012345' , 'Your Message!!');
//Returns status code. 200 for success
```

**Send SMS to Multiple recipients**

```
use Devfaysal\Muthofun\Facades\Muthofun;

$users = [
  '01717012345',
  '01671012345',
  '01811012345'
]

Muthofun::send($users , 'Your Message!!');
//Returns status code. 200 for success
```

**Delivery report**

```
use Devfaysal\Muthofun\Facades\Muthofun;

Muthofun::deliveryReport();
//Returns array
[
  [
    "shoot_id" => "R200008462443416b5e06"
    "receiver" => "8801671012345"
    "sender_id" => "8809601000000"
    "operator_name" => "Airtel"
    "sms_type" => "text"
    "sms_length" => 24
    "sms_count" => 1
    "sms_body" => "Testing package from app"
    "sms_rate" => 0.25
    "sms_cost" => 0.25
    "status" => "Delivered"
    "created_at" => "2022-03-30T16:42:28.797410+06:00"
  ],
  [
    "shoot_id" => "R2000084624434169918a"
    "receiver" => "8801717012345"
    "sender_id" => "8809601000000"
    "operator_name" => "GP"
    "sms_type" => "text"
    "sms_length" => 24
    "sms_count" => 1
    "sms_body" => "Testing package from app"
    "sms_rate" => 0.25
    "sms_cost" => 0.25
    "status" => "Delivered"
    "created_at" => "2022-03-30T16:42:28.782344+06:00"
  ]
]
```

**Account balance**

```
use Devfaysal\Muthofun\Facades\Muthofun;

//Get only balance
Muthofun::accountBalance();
//Returns balance in BDT
3.5

//Get details balance information
Muthofun::accountBalance(true);
//Returns array
[
  "code" => 200
  "message" => "User balance received successfully!"
  "balance" => 3.5
  "expiry" => "2022-04-28T11:05:21.671640Z"
]
```

TODO:

- Sending Personalized SMS (Send different message for different recipient.)

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Faysal Ahamed](https://github.com/devfaysal)
- [All Contributors](../../contributors)

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance71

Regular maintenance activity

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Recently: every ~335 days

Total

9

Last Release

161d ago

Major Versions

0.2 → 1.0.02022-03-30

PHP version history (2 changes)0.1PHP ^7.2

1.0.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f50719e87e4226e3140b479c102248ad1a44f95a059dc34092945a375b68826?d=identicon)[devfaysal](/maintainers/devfaysal)

---

Top Contributors

[![devfaysal](https://avatars.githubusercontent.com/u/16212149?v=4)](https://github.com/devfaysal "devfaysal (32 commits)")

---

Tags

laravellaravel-packagephpsmsphpapilaravelmuthofun

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devfaysal-laravel-muthofun-sms/health.svg)

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

###  Alternatives

[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)[wayofdev/laravel-symfony-serializer

📦 Laravel wrapper around Symfony Serializer.

2113.6k](/packages/wayofdev-laravel-symfony-serializer)[dystcz/lunar-api

Dystore API layer for Lunar e-commerce package

411.1k3](/packages/dystcz-lunar-api)[gufy/whmcs

WHMCS API for Laravel 5

201.7k](/packages/gufy-whmcs)

PHPackages © 2026

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