PHPackages                             tatdev/dp\_ms\_client - 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. tatdev/dp\_ms\_client

ActiveLibrary[API Development](/categories/api)

tatdev/dp\_ms\_client
=====================

DigiPeyk MessagingService Client SDK

1.0.1(8y ago)112MITPHPPHP &gt;=7.0

Since Sep 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alimrd/dp_ms_client)[ Packagist](https://packagist.org/packages/tatdev/dp_ms_client)[ RSS](/packages/tatdev-dp-ms-client/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (3)Used By (0)

Digipeyk messaging service client
=================================

[](#digipeyk-messaging-service-client)

client package for digipeyk messaging service
---------------------------------------------

[](#client-package-for-digipeyk-messaging-service)

### Installation with Composer

[](#installation-with-composer)

```
curl -s http://getcomposer.org/installer | php
php composer.phar require tatdev/dp-ms-client
```

### Usage

[](#usage)

By using this package you can work with the following methods of digipeyk messaging service:

- `sendMessage` − send sms with same body to multiple receptors
- `sendMessageMultiple` − send sms with multiple body to multiple receptors
- `sendEmail` − send email with same body to multiple receptors
- `sendEmailMultiple` − send email with multiple body to multiple receptors

### Example

[](#example)

#### sendMessage

[](#sendmessage)

```
use \Tatdev\DPMSClient\Clients\Client;
use \Tatdev\DPMSClient\HttpClients\CurlHttpClient;
use \Tatdev\DPMSClient\SendObjects\Value;

$client = new Client(new CurlHttpClient(), 'http://stg.digipeyk.com:8030/api/v1');

$order = $client->sendSms(
    1, // sender id
    ['09109934767'], // array of receptors
    null, // body of message (pass `null` if you use template)
    1, // template id (pass `null` if you use body)
    [new Value('name','ali')], // array of Value object (pass `[]` if template haven`t variables or using body)
    60, // accept latency to send and check status
    3, // retry count for send
    15, // wait time between every try for check status
    5, // retry count for check status if pending
    'Y/m/d H:i', // jalali date format for schedule sending
    '1396/07/05 16:00', // jalali date for send this message at that time
    false // `true` return order in array format | `false' (default) return order in object format
);
```

#### sendMessageMultiple

[](#sendmessagemultiple)

```
use \Tatdev\DPMSClient\Clients\Client;
use \Tatdev\DPMSClient\HttpClients\CurlHttpClient;
use \Tatdev\DPMSClient\SendObjects\Value;
use \Tatdev\DPMSClient\SendObjects\SingleMessage;

$client = new Client(new CurlHttpClient(), 'http://stg.digipeyk.com:8030/api/v1');

$order = $client->sendSmsMultiple(
    1, // sender id
    [ // array of SingleMessage object
        new SingleMessage(
            '09109934767', // receptor
            null, // body of message (pass `null` if you use template)
            1, // template id (pass `null` if you use body)
            [new Value('name', 'ali')] // array of Value object (pass `[]` if template haven`t variables or using body)
        )
    ],
    60, // accept latency to send and check status
    3, // retry count for send
    15, // wait time between every try for check status
    5, // retry count for check status if pending
    'Y/m/d H:i', // jalali date format for schedule sending
    '1396/07/05 16:00', // jalali date for send this message at that time
    false // `true` return order in array format | `false' (default) return order in object format
);
```

#### sendEmail

[](#sendemail)

```
use \Tatdev\DPMSClient\Clients\Client;
use \Tatdev\DPMSClient\HttpClients\CurlHttpClient;
use \Tatdev\DPMSClient\SendObjects\Value;

$client = new Client(new CurlHttpClient(), 'http://stg.digipeyk.com:8030/api/v1');

$order = $client->sendEmail(
    1, // sender id
    ['moradi-ali@outlook.com'], // array of receptors
    'subject', // subject of email
    null, // body of email (pass `null` if you use template)
    1, // template id (pass `null` if you use body)
    [new Value('name','ali')], // array of Value object (pass `[]` if template haven`t variables or using body)
    ["john@domain.com"], // array of cc
    ["blabla@domain.com"], // array of bcc
    60, // accept latency to send and check status
    3, // retry count for send
    15, // wait time between every try for check status
    5, // retry count for check status if pending
    'Y/m/d H:i', // jalali date format for schedule sending
    '1396/07/05 16:00', // jalali date for send this email at that time
    false // `true` return order in array format | `false' (default) return order in object format
);
```

#### sendEmailMultiple

[](#sendemailmultiple)

```
use \Tatdev\DPMSClient\Clients\Client;
use \Tatdev\DPMSClient\HttpClients\CurlHttpClient;
use \Tatdev\DPMSClient\SendObjects\Value;
use \Tatdev\DPMSClient\SendObjects\SingleEmail;

$client = new Client(new CurlHttpClient(), 'http://stg.digipeyk.com:8030/api/v1');

$order = $client->sendEmailMultiple(
    1, // sender id
    [ // array of SingleEmail object
        new SingleEmail(
            'moradi-ali@outlook.com', //receptor
            'subject', // subject of email
            null, // body of email (pass `null` if you use template)
            1, // template id (pass `null` if you use body)
            [new Value('name', 'ali')], // array of Value object (pass `[]` if template haven`t variables or using body)
            ["john@domain.com"], // array of cc
            ["blabla@domain.com"] // array of bcc
        )
    ],
    60, // accept latency to send and check status
    3, // retry count for send
    15, // wait time between every try for check status
    5, // retry count for check status if pending
    'Y/m/d H:i', // jalali date format for schedule sending
    '1396/07/05 16:00', // jalali date for send this email at that time
    false // `true` return order in array format | `false' (default) return order in object format
);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3199d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22057195?v=4)[tatdev](/maintainers/tatdev)[@tatdev](https://github.com/tatdev)

---

Top Contributors

[![alimrd](https://avatars.githubusercontent.com/u/20157202?v=4)](https://github.com/alimrd "alimrd (9 commits)")

### Embed Badge

![Health badge](/badges/tatdev-dp-ms-client/health.svg)

```
[![Health](https://phpackages.com/badges/tatdev-dp-ms-client/health.svg)](https://phpackages.com/packages/tatdev-dp-ms-client)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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