PHPackages                             blackm13/melipayamak - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. blackm13/melipayamak

ActiveLibrary[HTTP &amp; Networking](/categories/http)

blackm13/melipayamak
====================

Laravel 10+ package for MeliPayamak SMS service

00PHP

Since Mar 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/BlackM13/meli-payamak)[ Packagist](https://packagist.org/packages/blackm13/melipayamak)[ RSS](/packages/blackm13-melipayamak/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SMS Service Package
===================

[](#sms-service-package)

A simple PHP package for interacting with the Payamak SMS API to send and manage SMS messages effortlessly.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
    - [Sending SMS](#sending-sms)
    - [Sending Multiple SMS](#sending-multiple-sms)
    - [Getting Delivery Status](#getting-delivery-status)
    - [Retrieving Messages](#retrieving-messages)
    - [Checking Credit](#checking-credit)
    - [Getting Base Price](#getting-base-price)
    - [Getting User Numbers](#getting-user-numbers)
- [Contributing](#contributing)
- [License](#license)

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require black-m13/meli-payamak
```

### Register Service Provider (Laravel 10+)

[](#register-service-provider-laravel-10)

The service provider is automatically registered via Laravel's package discovery. However, if needed, manually add it in `config/app.php`:

```
'providers' => [
    BlackM13\MeliPayamak\SmsServiceProvider::class,
],
```

### Alias the Facade

[](#alias-the-facade)

Add the alias in `config/app.php` to use `SmsService` statically:

```
'aliases' => [
    'SmsService' => BlackM13\MeliPayamak\Facades\SmsService::class,
],
```

Usage
-----

[](#usage)

### Sending SMS

[](#sending-sms)

Send an SMS using the `sendSMS` method:

```
use SmsService;

$response = SmsService::sendSMS('09123456789', '1000', 'Your message here');
```

### Sending Multiple SMS

[](#sending-multiple-sms)

To send different messages to multiple recipients, use `sendMultipleSMS`:

```
$response = SmsService::sendMultipleSMS(
    ['09123456789', '09129876543'],
    '1000',
    ['Message for first recipient', 'Message for second recipient']
);
```

### Getting Delivery Status

[](#getting-delivery-status)

Check the delivery status of a sent SMS using `getDeliveryStatus` with the `recID` received during sending:

```
$response = SmsService::getDeliveryStatus('recID');
```

### Retrieving Messages

[](#retrieving-messages)

Get a list of sent or received messages using `getMessages`. Use `2` for sent messages:

```
$response = SmsService::getMessages(2);
```

### Checking Credit

[](#checking-credit)

Retrieve your SMS credit balance with `getCredit`:

```
$response = SmsService::getCredit();
```

### Getting Base Price

[](#getting-base-price)

Retrieve the base price for sending SMS using `getBasePrice`:

```
$response = SmsService::getBasePrice();
```

### Getting User Numbers

[](#getting-user-numbers)

Get a list of your dedicated numbers using `getUserNumbers`:

```
$response = SmsService::getUserNumbers();
```

Contributing
------------

[](#contributing)

Contributions are welcome! If you encounter issues or have suggestions, feel free to open an issue or submit a pull request.

License
-------

[](#license)

This package is licensed under the MIT License. See the `LICENSE` file for details.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity15

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/blackm13-melipayamak/health.svg)

```
[![Health](https://phpackages.com/badges/blackm13-melipayamak/health.svg)](https://phpackages.com/packages/blackm13-melipayamak)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M291](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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