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 4d 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 43% 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

3152d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24ebba9d68b12b65c7073d15f841f6ee737579225efb8dd30ba20f4ed162360b?d=identicon)[tatdev](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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