PHPackages                             jalallinux/ippanel-php-rest-sdk - 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. jalallinux/ippanel-php-rest-sdk

ActiveLibrary[API Development](/categories/api)

jalallinux/ippanel-php-rest-sdk
===============================

IPPanel REST API client

v1.0.6(4y ago)13721BSD-2-ClausePHPPHP &gt;=5.3.3

Since Feb 18Pushed 4y agoCompare

[ Source](https://github.com/jalallinux/ippanel-php-rest-sdk)[ Packagist](https://packagist.org/packages/jalallinux/ippanel-php-rest-sdk)[ Docs](https://github.com/jalallinux/ippanel-php-rest-sdk)[ RSS](/packages/jalallinux-ippanel-php-rest-sdk/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (1)Versions (8)Used By (0)

IPPanel SMS Php API SDK
=======================

[](#ippanel-sms-php-api-sdk)

This repository contains open source PHP client for `ippanel` api. Documentation can be found at: .

نصب
---

[](#نصب)

نصب با کامپوزر:

```
composer require jalallinux/ippanel-php-rest-sdk
```

اگر از کامپوزر استفاده نمیکنید. میتوانید پکیج را بصورت مستقیم دانلود کنید:

```
wget https://github.com/jalallinux/ippanel-php-rest-sdk/archive/master.zip
```

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

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

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

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

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

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

### ایجاد کلاینت

[](#ایجاد-کلاینت)

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

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

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

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

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

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

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

$bulkId = $client->send($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);
```

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

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

```
use IPPanel\Errors\Error;
use IPPanel\Errors\HttpException;

try{
    $bulkID = $client->send("9810001", ["98912xxxxx"], "ippanel is awesome");
} catch (Error $e) { // ippanel error
    var_dump($e->unwrap()); // بدنه خطای اصلی
    echo $e->getCode();

    if ($e->code() == ResponseCodes::ErrUnprocessableEntity) {
        echo "Unprocessable entity";
    }
} catch (HttpException $e) { // http error
    var_dump($e->getMessage()); // متن خطا
    echo $e->getCode();
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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 ~127 days

Recently: every ~29 days

Total

6

Last Release

1640d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ddef4e15a6bda9c060f6e33ccfd0a268895bfb664936f9191a836de4d528d684?d=identicon)[jalallinux](/maintainers/jalallinux)

---

Top Contributors

[![jalallinux](https://avatars.githubusercontent.com/u/37062636?v=4)](https://github.com/jalallinux "jalallinux (14 commits)")[![ippanel](https://avatars.githubusercontent.com/u/61179280?v=4)](https://github.com/ippanel "ippanel (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jalallinux-ippanel-php-rest-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/jalallinux-ippanel-php-rest-sdk/health.svg)](https://phpackages.com/packages/jalallinux-ippanel-php-rest-sdk)
```

###  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)
