PHPackages                             pishran/ippanel-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. pishran/ippanel-client

ActiveLibrary[API Development](/categories/api)

pishran/ippanel-client
======================

PHP client for ippanel api.

v1.0.3(2y ago)43.2k—0%MITPHPPHP &gt;=7.0

Since May 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/pishran/ippanel-client)[ Packagist](https://packagist.org/packages/pishran/ippanel-client)[ Docs](https://github.com/pishran/ippanel-client)[ RSS](/packages/pishran-ippanel-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

IPPanel Client
==============

[](#ippanel-client)

کلایت پی‌اچ‌پی برای پنل پیامک آی‌پی پنل

```
$client = new \Pishran\IpPanel\Client('YOUR_API_KEY');
```

نیازمندی‌ها
-----------

[](#نیازمندی‌ها)

جهت استفاده از این پکیج به موارد زیر نیاز خواهید داشت:

- PHP &gt;= 7.0
- ext-curl
- ext-json

روش نصب
-------

[](#روش-نصب)

برای نصب و استفاده از این پکیج می‌توانید از کمپوسر استفاده کنید:

`composer require pishran/ippanel-client`

متدها و نحوه استفاده
--------------------

[](#متدها-و-نحوه-استفاده)

### دریافت موجودی اعتبار

[](#دریافت-موجودی-اعتبار)

```
$credit = $client->getCredit();
```

### ارسال پیامک

[](#ارسال-پیامک)

```
$originator = '5000012345'; // شماره فرستنده
$recipients = ['09123456789', '09111111111']; // شماره‌های گیرنده
$message = 'Hello world!'; // متن پیام

$bulkId = $client->sendMessage($originator, $recipients, $message);
```

### دریافت اطلاعات پیام

[](#دریافت-اطلاعات-پیام)

```
$message = $client->getMessage($bulkId);

echo $message->status;
echo $message->cost;
echo $message->sentAt;
```

### دریافت وضعیت تحویل پیام

[](#دریافت-وضعیت-تحویل-پیام)

```
[$statuses, $paginationInfo] = $client->fetchStatuses($bulkId);

foreach ($statuses as $status) {
    echo "Recipient: $status->recipient, Status: $status->status";
}

echo "Total: $paginationInfo->total";
```

### دریافت پیام‌های ورودی

[](#دریافت-پیام‌های-ورودی)

```
[$messages, $paginationInfo] = $client->fetchInbox();

foreach ($messages as $message) {
    echo "Received message $message->message from number $message->sender in line $message->number";
}
```

### ایجاد الگوی پیام‌های پرتکرار

[](#ایجاد-الگوی-پیام‌های-پرتکرار)

```
$pattern = $client->createPattern('Your otp is %code%.');

echo $pattern->code; // شناسه الگو
```

### ارسال پیام با استفاده از الگو

[](#ارسال-پیام-با-استفاده-از-الگو)

```
$patternCode = '12eb1cbb'; // شناسه الگو
$originator = '5000012345'; // شماره فرستنده
$recipient = '09123456789'; // شماره گیرنده
$values = ['code' => 12345];

$bulkId = $client->sendPattern($patternCode, $originator, $recipient, $values);
```

مدیریت خطا
----------

[](#مدیریت-خطا)

```
try {
    $credit = $client->getCredit();
} catch (Exception $e) {
    echo $e->getCode(); // کد خطا
    echo $e->getMessage(); // متن توضیح خطا
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

4

Last Release

823d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8607021?v=4)[Farid Aghili](/maintainers/FaridAghili)[@FaridAghili](https://github.com/FaridAghili)

---

Top Contributors

[![FaridAghili](https://avatars.githubusercontent.com/u/8607021?v=4)](https://github.com/FaridAghili "FaridAghili (6 commits)")

---

Tags

smspersianIPPanel

### Embed Badge

![Health badge](/badges/pishran-ippanel-client/health.svg)

```
[![Health](https://phpackages.com/badges/pishran-ippanel-client/health.svg)](https://phpackages.com/packages/pishran-ippanel-client)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[aloha/twilio

Twilio API for Laravel

4733.6M5](/packages/aloha-twilio)[plivo/plivo-php

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1102.8M18](/packages/plivo-plivo-php)[plivo/php-sdk

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1101.9M5](/packages/plivo-php-sdk)[smsapi/php-client

SMSAPI API PHP Client

652.1M17](/packages/smsapi-php-client)[africastalking/africastalking

Official Africa's Talking PHP SDK

122557.6k10](/packages/africastalking-africastalking)

PHPackages © 2026

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