PHPackages                             mhndev/message - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. mhndev/message

ActiveLibrary[HTTP &amp; Networking](/categories/http)

mhndev/message
==============

php message client for sending and receiving messages using rest or soap

510PHP

Since Apr 11Pushed 10y ago2 watchersCompare

[ Source](https://github.com/mhndev/message)[ Packagist](https://packagist.org/packages/mhndev/message)[ RSS](/packages/mhndev-message/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

php message client for sending and receiving messages using rest or soap

\###Installation Add this package to your composer.json and run composer update. "mhndev/message": "dev-master"

you can also you this composer command :

```
composer require mhndev/message dev-master

```

\###Sample usage

```
$config =  [
    'default'=>'smir',

    'providers'=>[
        'smsir'=>[
            'adapter'=> \mhndev\message\providers\smsir\adapters\SoapAdapter::class,
            'address'=>'http://n.sms.ir/ws/SendReceive.asmx?wsdl',

            'meta'=>[
                'baseLine'=>'yourBaseLine',
            ],

            'credentials'=>[
                'username'=>'yourUserName',
                'password'=>'yourPassword'
            ]
        ],

        'magfa'=>[
            'address'=>'http://sms.magfa.com/magfaHttpService',
            'adapter'=> \mhndev\message\providers\smsir\adapters\RestAdapter::class,

            'meta'=>[
                'baseLine'=> '3000565758',
                'lines'=>[
                    '3000565758'
                ]
            ],

            'credentials'=>[
                'domain'=>'magfa',
                'username'=> 'mabna_00068',
                'password'=> '7#2@SmgqirDGIR4c',
                'panel_password'=>'a3eilm2s2y20#',
            ],

        ]
    ]

];

$client = new \mhndev\message\Client($config);

$client->send('09395410440', 'salam');
```

consider that for creating client object you should pass an configuration array as above. you can store your configuration file in your application and pass it to client object.

\###Providers

each adapter is related to a specific message service. you can have multiple service providers and specify default service in you config file.

if you want to use specific service you can pass the adapter object in client object but it's optional so if you don't pass adapter object as an argument for client constructor it would use default adapter.

even you can create your own provider class and extend the configuration file for your class.

for now this package support following sms senders :
[sms.ir](http://www.sms.ir/)
[magfa](https://messaging.magfa.com/ui/)

\#Adapters each provider can have multiple adapter . for example you can connect to magfa and send sms by soap adapter or rest adapter or even json rpc call just if you have received the permission from magfa.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c3e5d182214e2e6b989a2230bcae80b2107b088da1c6dbea6f6f8d28702e272?d=identicon)[majidphpdeveloper](/maintainers/majidphpdeveloper)

---

Top Contributors

[![mhndev](https://avatars.githubusercontent.com/u/5164182?v=4)](https://github.com/mhndev "mhndev (13 commits)")

### Embed Badge

![Health badge](/badges/mhndev-message/health.svg)

```
[![Health](https://phpackages.com/badges/mhndev-message/health.svg)](https://phpackages.com/packages/mhndev-message)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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