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

AbandonedArchivedLibrary

alighale/sms
============

Easily use Iranian SMS services

0.3(5y ago)021PHPPHP &gt;=7

Since Feb 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/AliGhaleyan/Sms)[ Packagist](https://packagist.org/packages/alighale/sms)[ Docs](https://github.com/AliGhaleyan/Sms)[ RSS](/packages/alighale-sms/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (6)Used By (0)

[![enter image description here](https://camo.githubusercontent.com/d8313d4c144bf0c3ba0c4dd3bda4fcb109a8c7c65aa4610c6c9ae5e063efd64e/687474703a2f2f73372e7069636f66696c652e636f6d2f66696c652f383338363831373634322f70686f746f5f323032305f30325f30315f32315f34365f30342e6a7067)](https://camo.githubusercontent.com/d8313d4c144bf0c3ba0c4dd3bda4fcb109a8c7c65aa4610c6c9ae5e063efd64e/687474703a2f2f73372e7069636f66696c652e636f6d2f66696c652f383338363831373634322f70686f746f5f323032305f30325f30315f32315f34365f30342e6a7067)

Iranian SMS
-----------

[](#iranian-sms)

#### Easily use Iranian SMS services :)

[](#easily-use-iranian-sms-services-)

### Installation:

[](#installation)

```
composer require alighale/sms

```

You must add the service provider to `config/app.php`

```
'providers' => [
	 // for laravel 5.8 and below
	 \Serjik\Sms\SmsServiceProvider::class,
];
```

**Publish your config file**

```
php artisan vendor:publish

```

---

### Configuration:

[](#configuration)

> .env

```
SMS_DRIVER=kavenegar // or another services
```

> config/sms.php

```
    /**
     * sms driver
     * [ 'kavenegar', 'ghasedak', ... ]
     */
    'driver' => env('SMS_DRIVER'),

    /**
     * drivers config
     */
    'drivers' => [

     /**
      * for install this service on your app run this:
      *                      composer require kavenegar/php:1.2
      */
     'kavenegar' => [
         'api_key' => "kavenegar api key",
         'line_number' => "10004346",
     ],

     /**
      * for install this service on your app run this:
      *                      composer require ghasedak/php:"dev-master"
      */
     'ghasedak' => [
         'api_key' => "ghasedak api key",
         'line_number' => "10008566",
//            'any_parameter' => 'any value',
     ],

//        EXAMPLE
//        'your_driver' => [
//            'parameters' => '',
//            'provider' => \App\Sms\YourServiceName::class,
//        ],

  ],
```

### Support of Iranian Sms services:

[](#support-of-iranian-sms-services)

TitleUrlinstallerkavenegar`composer require kavenegar/php:1.2`ghasedak`composer require ghasedak/php:"dev-master"`> We will add more services in the future. For use of services first install this package :)

Lets start to use:
------------------

[](#lets-start-to-use)

#### Single mode:

[](#single-mode)

```
//	\Serjik\Sms\Facades\Sms

/** @var BaseSmsDriver $result */
$result = Sms::to('09210125463')->send('test package');
```

#### Group mode:

[](#group-mode)

You can use the group service in two ways

> **Note:** in all send methods the result is **service** result or array of that.

#### The first method:

[](#the-first-method)

> Send a fixed message to the numbers

```
/** @var BaseSmsDriver $result */
$result = Sms::to(['09210484017', ...])->send('test package');
```

#### The second method:

[](#the-second-method)

> Send number specific message. Send message\[0\] =&gt; number\[0\], .... and so on

```
/** @var BaseSmsDriver $result */
$result = Sms::to(['09210484017', ...])
	->send(['test package', ....]);
```

### Driver replacement at the moment:

[](#driver-replacement-at-the-moment)

```
$result = Sms::driver('driver_name')
	->to('number or array of numbers')
	->send('message or array of messages');
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

2154d ago

PHP version history (2 changes)0.1PHP ^7.2

0.3PHP &gt;=7

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

iranian-sms-serviceslaravel-smslaravel-sms-senderphp-smssmssms-providersmskavenegarGhasedakiranian-smssms irsms iraniran smssms service provider

### Embed Badge

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

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

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[kavenegar/php

A PHP wrapper for Kavenegar's API

69616.1k25](/packages/kavenegar-php)[kavenegar/laravel

laravel 4 and 5 kavenegar integration

87336.7k4](/packages/kavenegar-laravel)[ghasedak/php

ghasedak sms gateway package for PHP

2044.3k7](/packages/ghasedak-php)[kavenegar/laravel-notification

laravel notificatiion channel for Kavenegar

1338.5k1](/packages/kavenegar-laravel-notification)[tartan/laravel-iranian-sms

Laravel 5.x sms handler for working with most iranian sms operators

255.3k](/packages/tartan-laravel-iranian-sms)

PHPackages © 2026

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