{"id":50200882,"url":"https://github.com/Shipu/muthofun-sms-gateway","last_synced_at":"2026-06-11T14:00:36.235Z","repository":{"id":48407120,"uuid":"111145517","full_name":"Shipu/muthofun-sms-gateway","owner":"Shipu","description":"PHP client for MUTHOFUN SMS Gateway ","archived":false,"fork":false,"pushed_at":"2021-07-27T17:37:34.000Z","size":19,"stargazers_count":24,"open_issues_count":0,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-14T00:18:00.823Z","etag":null,"topics":["bangladesh","gateway","laravel","lumen","muthofun-sms-gateway","php","sms"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shipu.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-17T20:02:22.000Z","updated_at":"2024-12-01T11:57:32.000Z","dependencies_parsed_at":"2022-08-23T19:10:20.248Z","dependency_job_id":null,"html_url":"https://github.com/Shipu/muthofun-sms-gateway","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Shipu/muthofun-sms-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shipu%2Fmuthofun-sms-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shipu%2Fmuthofun-sms-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shipu%2Fmuthofun-sms-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shipu%2Fmuthofun-sms-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shipu","download_url":"https://codeload.github.com/Shipu/muthofun-sms-gateway/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shipu%2Fmuthofun-sms-gateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34201842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bangladesh","gateway","laravel","lumen","muthofun-sms-gateway","php","sms"],"created_at":"2026-05-25T22:00:42.189Z","updated_at":"2026-06-11T14:00:36.213Z","avatar_url":"https://github.com/Shipu.png","language":"PHP","funding_links":[],"categories":["Fintech \u0026 Payments"],"sub_categories":["🚀 How to contribute"],"readme":"\u003ch1 align=\"center\"\u003eMUTHOFUN SMS GATEWAY\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    muthofun-sms-gateway is a PHP client for MUTHOFUN SMS Gateway API. This package is also support Laravel and Lumen.\n\u003c/p\u003e\n\n## Installation\n\nGo to terminal and run this command\n\n```shell\ncomposer require shipu/muthofun-sms-gateway\n```\n\nWait for few minutes. Composer will automatically install this package for your project.\n\n### For Laravel\n\nBelow **Laravel 5.5** open `config/app` and add this line in `providers` section\n\n```php\nShipu\\MuthoFun\\MuthoFunServiceProvider::class,\n```\n\nFor Facade support you have add this line in `aliases` section.\n\n```php\n'MUTHOFUN'   =\u003e  Shipu\\MuthoFun\\Facades\\MuthoFun::class,\n```\n\nThen run this command\n\n```shell\nphp artisan vendor:publish --provider=\"Shipu\\MuthoFun\\MuthoFunServiceProvider\"\n```\n\n## Configuration\n\nThis package is required two configurations.\n\n1. username = your username which provide by MUTHOFUN.\n2. password = your password which provide by MUTHOFUN\n\nmuthofun-sms-gateway is take an array as config file. Lets services\n\n```php\nuse Shipu\\MuthoFun\\MUTHOFUN;\n\n$config = [\n    'username' =\u003e 'Your Username',\n    'password' =\u003e 'Your Password'\n];\n\n$sms = new MUTHOFUN($config);\n```\n### For Laravel\n\nThis package is also support Laravel. For laravel you have to configure it as laravel style.\n\nGo to `app\\muthofun.php` and configure it with your credentials.\n\n```php\nreturn [\n    'username' =\u003e 'Your Username',\n    'password' =\u003e 'Your Password'\n];\n```\n\n## Usages\nIts very easy to use. This packages has a lot of functionalities and features.\n\n### Send SMS to a single user\n\n**In PHP:**\n```php\nuse \\Shipu\\MuthoFun\\MuthoFun;\n\n...\n\n$sms = new MUTHOFUN($config);\n$response = $sms-\u003emessage('your text here !!!', '01606022000')-\u003esend(); // Guzzle Response with request data\n\n// For another example please see below laravel section. \n \nreturn $response-\u003eautoParse(); // Getting only response contents.\n```\n**In Laravel:**\n```php\nuse \\Shipu\\MuthoFun\\Facades\\MuthoFun;\n\n...\n\n$sms = MUTHOFUN::message('your text here !!!', '01606022000')-\u003esend(); // Guzzle Response with request data\n\n// or\n\n$sms = MUTHOFUN::message('your text here !!!')-\u003eto('01606022000')-\u003esend();\n\n// or\n\n$sms = MUTHOFUN::send(\n    [\n        'message' =\u003e \"your text here\",\n        'to' =\u003e '01616022000'\n    ]\n);\nreturn $sms-\u003eautoParse(); // Getting only response contents.\n```\n\n### Send same message to all users\n```php\n$sms = MUTHOFUN::message('your text here !!!')\n            -\u003eto('01616022669')\n            -\u003eto('01845736124')\n            -\u003eto('01745987364')\n            -\u003esend();\n            \n// or you can try below statements also\n\n$sms = MUTHOFUN::message('your text here !!!', '01616022669')\n            -\u003eto('01845736124')\n            -\u003eto('01745987364')\n            -\u003esend();\n            \n// or           \n\n$users = [\n    '01616022669',\n    '01845736124',\n    '01745987364'\n];        \n$sms = MUTHOFUN::message('your text here !!!',$users)-\u003esend(); \n```\n\n### Send SMS to more user\n```php\n$sms = MUTHOFUN::message('your text here one !!!')-\u003eto('01616022669')\n            -\u003emessage('your text here two !!!')-\u003eto('01845736124')\n            -\u003emessage('your text here three !!!')-\u003eto('01745987364')\n            -\u003esend();\n// or\n\n$sms = MUTHOFUN::message('your text here one !!!', '01616022669')\n            -\u003emessage('your text here two !!!', '01845736124')\n            -\u003emessage('your text here three !!!', '01745987364')\n            -\u003esend();\n            \n// or \n\n$sms = MUTHOFUN::send([\n    [\n        'message' =\u003e \"your text here one !!!\",\n        'to' =\u003e '01616022669'\n    ],\n    [\n        'message' =\u003e \"your text here two !!!\",\n        'to' =\u003e '01707722669'\n    ],\n    [\n        'message' =\u003e \"your text here three !!!\",\n        'to' =\u003e '01745987364'\n    ]\n]);\n\n// or \n\n$sms = MUTHOFUN::message('your text here one !!!', '01616022669')-\u003esend([\n    [\n        'message' =\u003e \"your text here two !!!\",\n        'to' =\u003e '01707722669'\n    ],\n    [\n        'message' =\u003e \"your text here three !!!\",\n        'to' =\u003e '01745987364'\n    ]\n]);         \n```\n\n### Send SMS with SMS template\nSuppose 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\n```php\n$users = [\n    ['01670420420', ['Nahid', '1234']],\n    ['01970420420', ['Rana', '3213']],\n    ['01770420420', ['Shipu', '5000']],\n    ['01570420420', ['Kaiser', '3214']],\n    ['01870420420', ['Eather', '7642']]\n]\n$sms = new \\Shipu\\MuthoFun\\MUTHOFUN(config('muthofun'));\n$msg = $sms-\u003emessage(\"Hello %s , Your promo code is: %s\", $users)-\u003esend();\n\n// or \n\n$users = [\n    '01670420420' =\u003e ['Nahid', '1234'],\n    '01970420420' =\u003e ['Rana', '3213'],\n    '01770420420' =\u003e ['Shipu', '5000'],\n    '01570420420' =\u003e ['Kaiser', '3214'],\n    '01870420420' =\u003e ['Eather', '7642']\n]\n$sms = new \\Shipu\\MuthoFun\\MUTHOFUN(config('muthofun'));\n$msg = $sms-\u003emessage(\"Hello %s , Your promo code is: %s\", $users)-\u003esend();\n```\n\nHere this messege will sent as every users with his name and promo code like:\n\n- `8801670420420` - Hello Nahid , Your promo code is: 1234\n- `8801970420420` - Hello Rana , Your promo code is: 3213\n- `8801770420420` - Hello Shipu , Your promo code is: 5000\n- `8801570420420` - Hello Kaiser , Your promo code is: 1234\n- `8801870420420` - Hello Eather , Your promo code is: 7642\n\n### Change Number Prefix\n```php\n$sms = MUTHOFUN::numberPrefix('91')-\u003emessage('your text here !!!', '01606022000')-\u003esend();\n```\nDefault number prefix is `88`; \n\n### Debugging\n```php\n$sms = MUTHOFUN::debug(true)-\u003emessage('your text here !!!', '01606022000')-\u003esend();\n```\nDefault value is `false`. When debug `true` it's stop sending SMS and return sending query strings.\n\n### Response Data auto parse\n```php\n$sms = MUTHOFUN::autoParse(true)-\u003emessage('your text here !!!', '01606022000')-\u003esend();\n```\nDefault value is `false`.\n\n### Disable Template\n```php\n$sms = MUTHOFUN::template(false)-\u003emessage('your text here !!!', '01606022000')-\u003esend();\n```\nDefault value is `true`.\n\n### Response Data\n```php\n$sms-\u003eautoParse();\n```\nResponse :\n```php\nSimpleXMLElement {#212 ▼\n    +\"sms\": SimpleXMLElement {#216 ▼\n        +\"smsclientid\": \"713231739\"\n        +\"messageid\": \"500930552\"\n        +\"mobile-no\": \"+8801616022669\"\n}\n```\n\nHighly inspired by [Apiz Package](https://github.com/nahid/apiz) and [Sslwireless SMS Gateway](https://github.com/nahid/php-sslwireless-sms)\n\nSpecial Thanks to [Salahuddin Rana](https://github.com/rana7cse)\n\n## Support on Beerpay\nHey dude! Help me out for a couple of :beers:!\n\n[![Beerpay](https://beerpay.io/Shipu/muthofun-sms-gateway/badge.svg?style=beer-square)](https://beerpay.io/Shipu/muthofun-sms-gateway)  [![Beerpay](https://beerpay.io/Shipu/muthofun-sms-gateway/make-wish.svg?style=flat-square)](https://beerpay.io/Shipu/muthofun-sms-gateway?focus=wish)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShipu%2Fmuthofun-sms-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShipu%2Fmuthofun-sms-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShipu%2Fmuthofun-sms-gateway/lists"}