PHPackages                             shipu/muthofun-sms-gateway - 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. shipu/muthofun-sms-gateway

ActiveLibrary[API Development](/categories/api)

shipu/muthofun-sms-gateway
==========================

PHP client for MuthoFun SMS Payment Gateway API

v2.0.0(5y ago)24393MITPHP &gt;=5.5.9

Since Nov 19Compare

[ Source](https://github.com/Shipu/muthofun-sms-gateway)[ Packagist](https://packagist.org/packages/shipu/muthofun-sms-gateway)[ RSS](/packages/shipu-muthofun-sms-gateway/feed)WikiDiscussions Synced 6d ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

MUTHOFUN SMS GATEWAY
====================

[](#muthofun-sms-gateway)

 muthofun-sms-gateway is a PHP client for MUTHOFUN SMS Gateway API. This package is also support Laravel and Lumen.

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

[](#installation)

Go to terminal and run this command

```
composer require shipu/muthofun-sms-gateway
```

Wait for few minutes. Composer will automatically install this package for your project.

### For Laravel

[](#for-laravel)

Below **Laravel 5.5** open `config/app` and add this line in `providers` section

```
Shipu\MuthoFun\MuthoFunServiceProvider::class,
```

For Facade support you have add this line in `aliases` section.

```
'MUTHOFUN'   =>  Shipu\MuthoFun\Facades\MuthoFun::class,
```

Then run this command

```
php artisan vendor:publish --provider="Shipu\MuthoFun\MuthoFunServiceProvider"
```

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

[](#configuration)

This package is required two configurations.

1. username = your username which provide by MUTHOFUN.
2. password = your password which provide by MUTHOFUN

muthofun-sms-gateway is take an array as config file. Lets services

```
use Shipu\MuthoFun\MUTHOFUN;

$config = [
    'username' => 'Your Username',
    'password' => 'Your Password'
];

$sms = new MUTHOFUN($config);
```

### For Laravel

[](#for-laravel-1)

This package is also support Laravel. For laravel you have to configure it as laravel style.

Go to `app\muthofun.php` and configure it with your credentials.

```
return [
    'username' => 'Your Username',
    'password' => 'Your Password'
];
```

Usages
------

[](#usages)

Its very easy to use. This packages has a lot of functionalities and features.

### Send SMS to a single user

[](#send-sms-to-a-single-user)

**In PHP:**

```
use \Shipu\MuthoFun\MuthoFun;

...

$sms = new MUTHOFUN($config);
$response = $sms->message('your text here !!!', '01606022000')->send(); // Guzzle Response with request data

// For another example please see below laravel section.

return $response->autoParse(); // Getting only response contents.
```

**In Laravel:**

```
use \Shipu\MuthoFun\Facades\MuthoFun;

...

$sms = MUTHOFUN::message('your text here !!!', '01606022000')->send(); // Guzzle Response with request data

// or

$sms = MUTHOFUN::message('your text here !!!')->to('01606022000')->send();

// or

$sms = MUTHOFUN::send(
    [
        'message' => "your text here",
        'to' => '01616022000'
    ]
);
return $sms->autoParse(); // Getting only response contents.
```

### Send same message to all users

[](#send-same-message-to-all-users)

```
$sms = MUTHOFUN::message('your text here !!!')
            ->to('01616022669')
            ->to('01845736124')
            ->to('01745987364')
            ->send();

// or you can try below statements also

$sms = MUTHOFUN::message('your text here !!!', '01616022669')
            ->to('01845736124')
            ->to('01745987364')
            ->send();

// or

$users = [
    '01616022669',
    '01845736124',
    '01745987364'
];
$sms = MUTHOFUN::message('your text here !!!',$users)->send();
```

### Send SMS to more user

[](#send-sms-to-more-user)

```
$sms = MUTHOFUN::message('your text here one !!!')->to('01616022669')
            ->message('your text here two !!!')->to('01845736124')
            ->message('your text here three !!!')->to('01745987364')
            ->send();
// or

$sms = MUTHOFUN::message('your text here one !!!', '01616022669')
            ->message('your text here two !!!', '01845736124')
            ->message('your text here three !!!', '01745987364')
            ->send();

// or

$sms = MUTHOFUN::send([
    [
        'message' => "your text here one !!!",
        'to' => '01616022669'
    ],
    [
        'message' => "your text here two !!!",
        'to' => '01707722669'
    ],
    [
        'message' => "your text here three !!!",
        'to' => '01745987364'
    ]
]);

// or

$sms = MUTHOFUN::message('your text here one !!!', '01616022669')->send([
    [
        'message' => "your text here two !!!",
        'to' => '01707722669'
    ],
    [
        'message' => "your text here three !!!",
        'to' => '01745987364'
    ]
]);
```

### Send SMS with SMS template

[](#send-sms-with-sms-template)

Suppose you have to send SMS to multiple users but you want to mentions their name dynamically with message. So what can you do? Ha ha this package already handle this situations. Lets see

```
$users = [
    ['01670420420', ['Nahid', '1234']],
    ['01970420420', ['Rana', '3213']],
    ['01770420420', ['Shipu', '5000']],
    ['01570420420', ['Kaiser', '3214']],
    ['01870420420', ['Eather', '7642']]
]
$sms = new \Shipu\MuthoFun\MUTHOFUN(config('muthofun'));
$msg = $sms->message("Hello %s , Your promo code is: %s", $users)->send();

// or

$users = [
    '01670420420' => ['Nahid', '1234'],
    '01970420420' => ['Rana', '3213'],
    '01770420420' => ['Shipu', '5000'],
    '01570420420' => ['Kaiser', '3214'],
    '01870420420' => ['Eather', '7642']
]
$sms = new \Shipu\MuthoFun\MUTHOFUN(config('muthofun'));
$msg = $sms->message("Hello %s , Your promo code is: %s", $users)->send();
```

Here this messege will sent as every users with his name and promo code like:

- `8801670420420` - Hello Nahid , Your promo code is: 1234
- `8801970420420` - Hello Rana , Your promo code is: 3213
- `8801770420420` - Hello Shipu , Your promo code is: 5000
- `8801570420420` - Hello Kaiser , Your promo code is: 1234
- `8801870420420` - Hello Eather , Your promo code is: 7642

### Change Number Prefix

[](#change-number-prefix)

```
$sms = MUTHOFUN::numberPrefix('91')->message('your text here !!!', '01606022000')->send();
```

Default number prefix is `88`;

### Debugging

[](#debugging)

```
$sms = MUTHOFUN::debug(true)->message('your text here !!!', '01606022000')->send();
```

Default value is `false`. When debug `true` it's stop sending SMS and return sending query strings.

### Response Data auto parse

[](#response-data-auto-parse)

```
$sms = MUTHOFUN::autoParse(true)->message('your text here !!!', '01606022000')->send();
```

Default value is `false`.

### Disable Template

[](#disable-template)

```
$sms = MUTHOFUN::template(false)->message('your text here !!!', '01606022000')->send();
```

Default value is `true`.

### Response Data

[](#response-data)

```
$sms->autoParse();
```

Response :

```
SimpleXMLElement {#212 ▼
    +"sms": SimpleXMLElement {#216 ▼
        +"smsclientid": "713231739"
        +"messageid": "500930552"
        +"mobile-no": "+8801616022669"
}
```

Highly inspired by [Apiz Package](https://github.com/nahid/apiz) and [Sslwireless SMS Gateway](https://github.com/nahid/php-sslwireless-sms)

Special Thanks to [Salahuddin Rana](https://github.com/rana7cse)

Support on Beerpay
------------------

[](#support-on-beerpay)

Hey dude! Help me out for a couple of 🍻!

[![Beerpay](https://camo.githubusercontent.com/55e64247c997cccd1347b25de824305afa3f96aae1c0f70e8c3618e76b56c6d4/68747470733a2f2f626565727061792e696f2f53686970752f6d7574686f66756e2d736d732d676174657761792f62616467652e7376673f7374796c653d626565722d737175617265)](https://beerpay.io/Shipu/muthofun-sms-gateway) [![Beerpay](https://camo.githubusercontent.com/cf1d4a79110b671698e9e40bd4ebbb5febb04b63e08a9c1199e5a636349c8604/68747470733a2f2f626565727061792e696f2f53686970752f6d7574686f66756e2d736d732d676174657761792f6d616b652d776973682e7376673f7374796c653d666c61742d737175617265)](https://beerpay.io/Shipu/muthofun-sms-gateway?focus=wish)

###  Health Score

31

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~347 days

Total

4

Last Release

2147d ago

Major Versions

v1.0.2 → v2.0.02020-09-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/91fdb46a4f45685ae0d448fbc943b1e4a662b56864b17224a65d14c92ee4e247?d=identicon)[shipu](/maintainers/shipu)

---

Top Contributors

[![Shipu](https://avatars.githubusercontent.com/u/4118421?v=4)](https://github.com/Shipu "Shipu (13 commits)")[![mobarokhossain](https://avatars.githubusercontent.com/u/14954948?v=4)](https://github.com/mobarokhossain "mobarokhossain (1 commits)")

---

Tags

phpapilaravellumensmsgatewaymuthofunphp-muthofun

### Embed Badge

![Health badge](/badges/shipu-muthofun-sms-gateway/health.svg)

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

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k10.2M97](/packages/openai-php-laravel)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M16](/packages/checkout-checkout-sdk-php)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[resend/resend-php

Resend PHP library.

608.3M52](/packages/resend-resend-php)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

121269.8k1](/packages/ellaisys-aws-cognito)

PHPackages © 2026

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