PHPackages                             morpheusadam/elanak - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. morpheusadam/elanak

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

morpheusadam/elanak
===================

allinone sms sender

50PHP

Since Jul 2Pushed 2w ago1 watchersCompare

[ Source](https://github.com/morpheusadam/SmsForge)[ Packagist](https://packagist.org/packages/morpheusadam/elanak)[ RSS](/packages/morpheusadam-elanak/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

SMS Forge
=========

[](#sms-forge)

SMS Forge (package name `Elanak`) is a Laravel package that sends SMS through several Iranian SMS providers behind one fluent interface, for PHP developers who would otherwise integrate each provider's SDK separately.

Overview
--------

[](#overview)

Rather than installing a separate SDK and writing separate sending code for every SMS panel, SMS Forge wraps them in a single API. Switching gateway means changing the argument to one `via()` call; the rest of the sending logic stays the same.

The package registers a service provider and an `Elanak` facade for Laravel auto-discovery. It supports plain text messages as well as pattern/template messages, which is what the providers use for OTP codes and other transactional notifications.

Supported providers
-------------------

[](#supported-providers)

Gateways are implemented under `src/Getways/`.

ProviderDriver nameKavenegar`kavenegar`Melipayamak`melipayamak`IPPanel`ippanel`SMS.ir`smsir`Payamresan`payamresan`Requirements
------------

[](#requirements)

- PHP with Composer
- Laravel (service provider and facade are auto-discovered)
- PSR-4 namespace: `Morpheusadam\Elanak\`

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

[](#installation)

Install the package:

```
composer require morpheusadam/SmsForge
```

Install the SDKs for the providers you intend to use:

```
composer require kavenegar/laravel
composer require melipayamak/laravel:1.0.0
composer require ippanel/php-rest-sdk
```

To remove the package:

```
composer remove morpheusadam/SmsForge
```

Usage
-----

[](#usage)

### Send a text message

[](#send-a-text-message)

```
Elanak::send($messages)
    ->via($provider)   // 'kavenegar', 'melipayamak', 'ippanel', 'smsir', 'payamresan'
    ->api($api)
    ->from($sender)
    ->to('09185312051')
    ->dispatch();
```

### Send a pattern/template message

[](#send-a-patterntemplate-message)

Melipayamak:

```
Elanak::send($messages)
    ->to($to)
    ->via($providerName)
    ->api($api)
    ->pattern($patternCode, $value)
    ->dispatch();
```

IPPanel:

```
Elanak::send($messages)
    ->to($to)
    ->via($providerName)
    ->api($api)
    ->pattern($patternCode, $value)
    ->from($sender)
    ->dispatch();
```

### Switch provider

[](#switch-provider)

Change the argument passed to `via()`:

```
->via('melipayamak')
->via('kavenegar')
->via('ippanel')
->via('payamresan')
->via('smsir')
```

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

[](#contributing)

Open an [issue](https://github.com/morpheusadam/SmsForge/issues) or submit a pull request to add a provider, fix a bug, or improve the documentation.

License
-------

[](#license)

MIT. See [`LICENSE`](LICENSE) for the full terms.

Author
------

[](#author)

Morpheus Adam — [GitHub](https://github.com/morpheusadam) · [sam.zeonic.me](https://sam.zeonic.me) ·

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance63

Regular maintenance activity

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity11

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://avatars.githubusercontent.com/u/171357505?v=4)[morpheus](/maintainers/morpheusadam)[@morpheusadam](https://github.com/morpheusadam)

---

Top Contributors

[![morpheusadam](https://avatars.githubusercontent.com/u/171357505?v=4)](https://github.com/morpheusadam "morpheusadam (7 commits)")

---

Tags

ippanelkavenegarlaravellaravel-packagemelipayamaknotificationsotpphpsmssms-gatewaysmsir

### Embed Badge

![Health badge](/badges/morpheusadam-elanak/health.svg)

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

###  Alternatives

[bigbharatjain/laravel-clickatell

This package makes it easy to send sms using clickatell.com with Laravel 5.

1435.2k](/packages/bigbharatjain-laravel-clickatell)[motomedialab/smtp2go

Send emails via API using the first-class email courier SMTP2Go

1323.6k](/packages/motomedialab-smtp2go)

PHPackages © 2026

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