PHPackages                             yiiman/mediana-sms - 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. yiiman/mediana-sms

ActiveLibrary

yiiman/mediana-sms
==================

Classified Mediana(IPPanel) sms API, created by APIStorm package

v0.0.1(4y ago)1130Apache-2.0PHP

Since Apr 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/apistorm-dev/mediana-sms)[ Packagist](https://packagist.org/packages/yiiman/mediana-sms)[ RSS](/packages/yiiman-mediana-sms/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Mediana-sms
===========

[](#mediana-sms)

MedianaSMS API - created by APIStorm package

This package is fully classified responses and send data In this package you can validate data before send to server with internal validation method,then this package is safe for programmers that want to know different between server errors and posted data errors or etc

Install
-------

[](#install)

You can install this package easily by composer

Just type this code on command line:

`composer require yiiman/mediana-sms`

Usage
-----

[](#usage)

Usage of this package is easy and safe.

Let's start together:

In this example we want to know credit:

```
$api = new Yiiman\MedianaSms\MedianaSMS();
$api->apiKey = 'Your SMS panel API key';
$creditResult = $api->getCredit();
if ($creditResult->isSuccess()) {
    echo $creditResult->credit;//is Float
}else{
    echo "Response has some errors:\n\n";
    var_dump($creditResult->getError()->message);
}
```

In this example we want to validate our data and then send new SMS:

```
    $api = new Yiiman\MedianaSms\MedianaSMS();
    $api->apiKey = 'Your SMS panel API key';
    // < Initializing data >
    {
        $dataSms = new SendSMSRequest();
        $dataSms->originator0 = $sms_line;
        $dataSms->recipients0 = [$test_mobile_number];
        $dataSms->message0 = 'this is test';
    }
    //
    if ($dataSms->validate()) {
        $sendResult = $api->send($dataSms);
        if ($sendResult && $sendResult->bulk_id) {
            $message_info = $api->getMessage($sendResult->bulk_id);
            if ($message_info->isSuccess()) {
                echo "Message info :\n\n";
                echo '-- message:'.$message_info->message."\n";
                echo '-- status:'.$message_info->status."\n";
                echo '-- created at:'.$message_info->created_at."\n";
                echo '-- type:'.$message_info->type."\n";
                echo '-- confirm status:'.$message_info->confirm_state."\n";
                echo '-- number:'.$message_info->number."\n";
                echo '-- sent at:'.$message_info->sent_at."\n";
                echo '-- cost:'.$message_info->cost."\n";
                echo '-- payback cost:'.$message_info->payback_cost."\n";
                echo '-- count of receivers:'.$message_info->recipients_count."\n";
                echo '-- count of valid receivers:'.$message_info->valid_recipients_count."\n";
            } else {
                echo "Server returned some errors:\n\n";
                var_dump($message_info->getError()->message);
            }
        }
    } else {
        echo "Your posted data has some errors:\n\n";
        var_dump($dataSms->errors());
    }
```

Sample codes
------------

[](#sample-codes)

You can find samples in `test.php` file

For run `test.php` file ,you should change `env-example.php` to `env.php` and fill data in that

When `env.php` file is ready, open terminal and type:

```
php test.php
```

API Documents
-------------

[](#api-documents)

- [UpStream repository](https://github.com/ippanel)
- [Document](https://sms.ariaservice.net/files/upload/api.pdf)

Credits
-------

[](#credits)

- Programmed by [YiiMan](https://github.com/yiiman-dev)
- Sponsored by [AriaService](https://ariaservice.net/)
- Powered by [APIStorm](https://github.com/yiiman-dev/apistorm)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1500d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/289bca70798b2ce7dadc6fbe072bf8c2ffea21ef7db91a5a2659129b34ca9e4e?d=identicon)[yiiman](/maintainers/yiiman)

---

Top Contributors

[![yiiman-dev](https://avatars.githubusercontent.com/u/11722893?v=4)](https://github.com/yiiman-dev "yiiman-dev (3 commits)")

### Embed Badge

![Health badge](/badges/yiiman-mediana-sms/health.svg)

```
[![Health](https://phpackages.com/badges/yiiman-mediana-sms/health.svg)](https://phpackages.com/packages/yiiman-mediana-sms)
```

PHPackages © 2026

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