PHPackages                             mahdigraph/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mahdigraph/laravel-sms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mahdigraph/laravel-sms
======================

PHP SMS Driver Integration Package

v1.0.1(3y ago)3343MITPHPPHP &gt;=7.2

Since Jun 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/MahdiGraph/laravel-sms)[ Packagist](https://packagist.org/packages/mahdigraph/laravel-sms)[ Docs](https://github.com/MahdiGraph/laravel-sms)[ RSS](/packages/mahdigraph-laravel-sms/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

[![Laravel SMS](resources/images/sms.png?raw=true)](resources/images/sms.png?raw=true)

Laravel SMS Integration Package
===============================

[](#laravel-sms-integration-package)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![Latest Version on Packagist](https://camo.githubusercontent.com/85e92f4df0b67d2d1fa3ee2617af826988897ef98b3dc04110d94aff0f7886e0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6168646967726170682f6c61726176656c2d736d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mahdigraph/laravel-sms)[![Total Downloads on Packagist](https://camo.githubusercontent.com/a05c035515664809e7c12c9de76bd14d2e9c509a3efad43affe27d67eeafb13b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6168646967726170682f6c61726176656c2d736d732e7376673f636f6c6f723d25323346313826)](https://packagist.org/packages/mahdigraph/laravel-sms)[![Maintainability](https://camo.githubusercontent.com/1f4b4087dc48312b22423d8122b58d3e449cb2072d202289b2b15f6a7326ac87/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30336333353264616162313964653733313931612f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/MahdiGraph/laravel-sms/maintainability)[![StyleCI](https://camo.githubusercontent.com/5802660f735cb64c68e3d58d1aaf088e3cc98d1df377d4734392d303719d5743/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f373534383938362f736869656c643f7374796c653d666c6174266272616e63683d362e78)](https://github.styleci.io/repos/7548986)[![Quality Score](https://camo.githubusercontent.com/2b83d7bef07b75390fdf268649d12cd203e88de604708f80a898f292a4f94414/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6d6168646967726170682f6c61726176656c2d736d732e7376673f6c6162656c3d436f64652532305175616c697479267374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/mahdigraph/laravel-sms)

This is a Laravel Package for SMS Integrations. This package supports `Laravel 5.8+`.

> This packages works with multiple drivers, and you can create custom drivers if you can't find them in the [current drivers list](#list-of-available-drivers) (below list).

- [داکیومنت فارسی](README-FA.md)
- [English documents](README.md)

List of contents
================

[](#list-of-contents)

- [List of available drivers](#list-of-available-drivers)
- [Install](#install)
- [Configure](#configure)
- [How to use](#how-to-use)

List of available drivers
=========================

[](#list-of-available-drivers)

- [ippanel](https://ippanel.com/) ✔️
- Others are under way.

**Help me to add the gateways below by creating `pull requests`**

- [twilio](https://twilio.com)
- [kavenegar](https://kavenegar.com)
- [sms](https://sms.ir)
- [farazsms](https://farazsms.com)
- [melipayamak](https://melipayamak.com)
- ...

Install
-------

[](#install)

Via Composer

```
$ composer require mahdigraph/laravel-sms
```

Configure
---------

[](#configure)

If you are using `Laravel 5.5` or higher then you don't need to add the provider and alias. (Skip to b)

a. In your `config/app.php` file add these two lines.

```
// In your providers array.
'providers' => [
    ...
    \Metti\LaravelSms\LaravelSMSServiceProvider::class,
],

// In your aliases array.
'aliases' => [
    ...
    'SendSMS' => \Metti\LaravelSms\Facade\SendSMS::class,
],
```

b. then run `php artisan vendor:publish` to publish `config/sms.php` file in your config directory.

In the config file you can set the `default driver` to use for all your sms requests. But you can also change the driver at runtime.

Choose what sms provider you would like to use in your application. Then make that as default driver so that you don't have to specify that everywhere. But, you can also use multiple sms providers in a project.

```
// Eg. if you want to use ippanel.
'default' => 'ippanel',
```

Then fill the credentials for that driver in the drivers array.

```
'drivers' => [
    'ippanel' => [
        // Fill in the credentials here.
        'key' => '00000000-0000-0000-0000-000000000000', // API Key
        'originator' => '+9890000', // Sender Number
        'patterns' => [ // patterns only if you want to use them.
            'contact' => [ // pattern name
                'pattern_code' => 'abcd-efgh-ijkl-mnop', // pattern code from your sms provider
                'values' => [ // values only if you want to set default values for your patterns.
                    'support_phone' => '021-123456789'
                ]
            ]
        ]
    ],
    ...
]
```

How to use
----------

[](#how-to-use)

```
// Sending Text Messages
SendSMS::textMessage('Hey You :)')
    ->recipients(['09121234567','09121234568'])
    ->send();

// Sending Pattern Messages
SendSMS::via('ippanel')
    ->patternMessage('contact',['support_phone' => '021-123456789'])
    ->recipients('09121234567')
    ->send();
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [MahdiGraph](https://github.com/MahdiGraph)
- [All Contributors](https://github.com/MahdiGraph/laravel-sms/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~0 days

Total

2

Last Release

1417d ago

### Community

Maintainers

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

---

Top Contributors

[![MahdiGraph](https://avatars.githubusercontent.com/u/34353346?v=4)](https://github.com/MahdiGraph "MahdiGraph (10 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")

---

Tags

laravellaravel-smssend-smssms-apisms-gatewaysmslaravel-smsmelipayamakIPPanelfarazsmsLaravel SMS Driverlaravel melipayamak packagelaravel persian smsphp sms providerlaravel ippanel packagelaravel farazsms package

### Embed Badge

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

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

###  Alternatives

[tzsk/sms

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

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

PHP-based SMPP client lib

234197.5k8](/packages/php-smpp-php-smpp)[instasent/sms-counter-php

SMS Counter PHP Class Library which detects encoding of an SMS message text, counts the characters as per the encoding and gives page limit information.

491.3M4](/packages/instasent-sms-counter-php)[alexandr-mironov/php-smpp

PHP SMPP client lib, fork of onlinecity/php-smpp

4864.3k](/packages/alexandr-mironov-php-smpp)[benmorel/gsm-charset-converter

Converts GSM 03.38 strings to and from UTF-8

16423.5k](/packages/benmorel-gsm-charset-converter)[matthewbdaly/sms-client

A generic SMS client library. Supports multiple swappable drivers.

2291.2k2](/packages/matthewbdaly-sms-client)

PHPackages © 2026

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