PHPackages                             cryptommer/smsir - 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. cryptommer/smsir

ActiveLibrary[API Development](/categories/api)

cryptommer/smsir
================

Official sms.ir New Panel laravel repository

v1.2.0(1y ago)131.0k↓16.7%1[3 issues](https://github.com/cryptommer/smsir/issues)1MITPHPPHP ^7.0|^8.0

Since Feb 14Pushed 1y ago1 watchersCompare

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

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

sms.ir v2 laravel package
=========================

[](#smsir-v2-laravel-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/89e23411d17530234bc3c241d4b88fc8e0a2c8227de3a9abf580bcdd4dde375e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63727970746f6d6d65722f736d7369722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cryptommer/smsir)[![Quality Score](https://camo.githubusercontent.com/fa10b78cc03fd41e71e7d6e90de5adc1d6afe677ada8c46fe717c9057fbe803b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f63727970746f6d6d65722f536d7369722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cryptommer/Sms-ir)[![Total Downloads](https://camo.githubusercontent.com/360839ff75ef5691dd23f498b92efecfe0ff5e1320623c16540cbb3e19c93532/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63727970746f6d6d65722f536d7369722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cryptommer/smsir)

This is a official [sms.ir](https://sms.ir) laravel package

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

[](#installation)

You can install the package via composer:

```
composer require cryptommer/smsir
```

publish provider (if you don't use laravel skip this)

```
php artisan vendor:publish --provider="Cryptommer\Smsir\SmsirServiceProvider"

```

Add this to env file (if you don't use laravel skip this)

```
SMSIR_API_KEY=
SMSIR_LINE_NUMBER=

```

Usage
-----

[](#usage)

add this line to the beginning of any class that you want to use smsir functions

### For Laravel

[](#for-laravel)

```
use Cryptommer\Smsir\Smsir;
```

#### Notification

[](#notification)

add this function to your model

```
public function routeNotificationForSmsir() {
    return $this->phone_number
}
```

modify these lines in notification class

```
public function via() {
    return [\Cryptommer\Smsir\Notifications\SmsirChannel::class] //  or 'smsir'
}
```

add this function to notification class

```
public function toSmsir(object $notifiable) {
    /**
    * template_id string
    * parameters array of key and value that key equal to the key in template id
    */
    return new \Cryptommer\Smsir\Notifications\SmsirMessage()
        ->template_id($template_id)
        ->parameters($parameters)
}
```

### Pure PHP

[](#pure-php)

```
require __DIR__ . '/vendor/autoload.php';
use Cryptommer\Smsir\Classes\Smsir;

$smsir = new Smsir($line_number, $api_key)
```

### Sending Message

[](#sending-message)

Sending messages to mobile numbers

[Document](Send.md)

### Report Messages

[](#report-messages)

Get report of sent messages and received messages

[Document](Report.md)

### Setting

[](#setting)

Get account credit and line numbers

[Document](Setting.md)

### Responses

[](#responses)

Response Models

[Document](Response.md)

### View Routes (for laravel users)

[](#view-routes-for-laravel-users)

Sending sms

```
http://localhost:8000/smsir/send/bulk

```

Get Report of today sent sms

```
http://localhost:8000/smsir/report/sent/today

```

Get Report of today received sms

```
http://localhost:8000/smsir/report/sent/today

```

### Translations

[](#translations)

#### Delivery Status

[](#delivery-status)

```
__(`smsir.DeliveryStatus.$delivery_status`);
```

#### Request Status

[](#request-status)

```
__(`smsir.SendStatus.$status`);
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- به سفارش شرکت ایده پردازان
- [Pouya Biglari](https://github.com/cryptommer)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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

Recently: every ~216 days

Total

6

Last Release

665d ago

PHP version history (3 changes)v1.0.0PHP ^7.4|^8.0

v1.1.0PHP ^7.0|^8.0

v1.1.3PHP ^7.0|^8

### Community

Maintainers

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

---

Top Contributors

[![cryptommer](https://avatars.githubusercontent.com/u/16734033?v=4)](https://github.com/cryptommer "cryptommer (44 commits)")

---

Tags

smsircryptommer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cryptommer-smsir/health.svg)

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

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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