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

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

nishtman/laravel-sms
====================

This package help you to call api of sms providers in iran with laravel framework

0.0.1.x-dev(6y ago)11MITPHPPHP ^7.0 | ^7.1 | ^7.2

Since Sep 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nishtman1366/laravel-sms)[ Packagist](https://packagist.org/packages/nishtman/laravel-sms)[ RSS](/packages/nishtman-laravel-sms/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

nishtman/laravel-sms
====================

[](#nishtmanlaravel-sms)

This library helps developers to easily call the web services of sms providers in Iran using the Larval Framework.

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

[](#supported-providers)

- [MeliPayamak](http://melipayamak.ir "MeliPayamak")
- [HostIranSms](http://sms.hostiran.ir "HostIranSms")
- [SmsIr](http://sms.ir "sms.ir")
- [Ghasedak](http://ghasedak.io "ghasedak.io")
- [Kavenegar](http://kavenegar.com "kavenegar.com")

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

[](#installation)

#### Requirements:

[](#requirements)

- `php >= 7.0`
- `laravel >= 5.0`

Run the Composer update command

```
$ composer require nishtman/sms

```

- First, enter the settings for your short message provider in the `config/sms.php` file and enter the module name you want in the `default` section.

Usage
-----

[](#usage)

#### Sending sms

[](#sending-sms)

```
public function send()
{
	/*
	* Instance the sms object
	*/
	$sms = new \Nishtman\Sms\Sms();
	$result = $sms->send('09123456789', 'text message');
	/*
	* or you can use facades
	*/
	$result = Nishtman\Sms\Facades\Sms::send('09123456789', 'text message');
}
```

#### Selecting provider

[](#selecting-provider)

```
public function send()
{
        /*
         * Instance the sms object
         */
        $sms = new \Nishtman\Sms\Sms();
        $result = $sms->provider('HostIran')->send('09123456789', 'text message')
        /*
         * or you can use facades
         */
        $result = Nishtman\Sms\Facades\Sms::provider('HostIran')->send('09123456789', 'text message');
}
```

Methods and api
---------------

[](#methods-and-api)

```
/*
* Set the provider
*/
provider(string $provider): \Nishtman\Sms\sms
```

```
/*
* Set sms message
*/
send(string $to, string $text): array

/*
* Array
* (
*     [status] => 'integer status code'
*     [message] => 'string message'
*     [referenceId] => 'integer reference id to get the delivery report'
* )
*/
```

```
/*
* Get the delivery status
*/
delivery(int $referenceId): array

/*
* Array
* (
*     [string] => 'string status text'
* )
*/
```

```
/*
* Get the credits value
*/
getCredits(int $referenceId): int

/*
* Array
* (
*     [int] => 'your credit amount'
* )
*/
```

Test
----

[](#test)

Pull requests
-------------

[](#pull-requests)

License
-------

[](#license)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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

2442d ago

### Community

Maintainers

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

---

Top Contributors

[![nishtman1366](https://avatars.githubusercontent.com/u/51849295?v=4)](https://github.com/nishtman1366 "nishtman1366 (25 commits)")

---

Tags

laravelsmssms providersnishtman

### Embed Badge

![Health badge](/badges/nishtman-laravel-sms/health.svg)

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

###  Alternatives

[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[cybercog/youtrack-rest-php

YouTrack REST API PHP Client.

37149.2k3](/packages/cybercog-youtrack-rest-php)[dreamfactory/df-core

DreamFactory(tm) Core Components

1651.7k20](/packages/dreamfactory-df-core)

PHPackages © 2026

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