PHPackages                             farazsms/laravel - 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. farazsms/laravel

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

farazsms/laravel
================

Laravel integration for FarazSMS · IranPayamak (فراز اس ام اس · ایران پیامک) — https://farazsms.com. Facade, config, and an SMS notification channel.

v1.0.1(today)00MITPHPPHP &gt;=8.0

Since Jun 18Pushed todayCompare

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

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

farazsms/laravel
================

[](#farazsmslaravel)

**FarazSMS · IranPayamak (فراز اس ام اس · ایران پیامک)**

-
-

Laravel integration for the FarazSMS · IranPayamak SMS platform. Ships a Facade, a publishable config file, and a notification channel for sending pattern (template) and simple text messages.

Supports Laravel 9, 10, and 11 · PHP 8.0+.

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

[](#installation)

```
composer require farazsms/laravel
```

The service provider and the `Farazsms` facade alias are registered automatically via Laravel package auto-discovery.

Configuration
-------------

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --tag=farazsms-config
```

Then set your API key in `.env`:

```
FARAZSMS_API_KEY=your-api-key
# Optional overrides:
FARAZSMS_BASE_URL=https://api.iranpayamak.com
FARAZSMS_LINE=90008361
```

Facade usage
------------

[](#facade-usage)

```
use FarazSMS\Laravel\Facades\Farazsms;

// Check your balance
$balance = Farazsms::balance();

// Send a pattern (template) message
Farazsms::sendPattern('verify-code', '09120000000', ['code' => '1234']);

// Send a simple text message
Farazsms::sendSimple('سلام دنیا', ['09120000000']);
```

Notification channel
--------------------

[](#notification-channel)

Route notifications through the `farazsms` channel. Add a recipient resolver to your notifiable (`routeNotificationForFarazsms()`, or simply a `phone` / `mobile` attribute), then build the message with `FarazsmsMessage`.

```
use Illuminate\Notifications\Notification;
use FarazSMS\Laravel\Notifications\FarazsmsMessage;

class VerifyCodeNotification extends Notification
{
    public function __construct(public string $code)
    {
    }

    public function via($notifiable): array
    {
        return ['farazsms'];
    }

    public function toFarazsms($notifiable): FarazsmsMessage
    {
        return FarazsmsMessage::pattern('verify-code', ['code' => $this->code]);

        // Or a plain text message:
        // return FarazsmsMessage::simple("Your code is {$this->code}");
    }
}
```

On the notifiable model, expose the destination number:

```
public function routeNotificationForFarazsms($notification): string
{
    return $this->mobile; // or $this->phone
}
```

Dispatch as usual:

```
$user->notify(new VerifyCodeNotification('1234'));
```

License
-------

[](#license)

Released under the [MIT License](LICENSE). Copyright (c) 2026 FarazSMS.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

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

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31545810?v=4)[seyyed mahmood ghaffari](/maintainers/ghaffari273)[@ghaffari273](https://github.com/ghaffari273)

---

Top Contributors

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

---

Tags

laravelotpnotificationsmspatternfarazsmsiranpayamak

### Embed Badge

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

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

###  Alternatives

[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2588.1M15](/packages/laravel-notification-channels-twilio)[tzsk/sms

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

318263.8k6](/packages/tzsk-sms)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10139.9k](/packages/gr8shivam-laravel-sms-api)[ghanem/laravel-smsmisr

Send SMS and SMS Notification via SMS Misr for Laravel

204.9k](/packages/ghanem-laravel-smsmisr)

PHPackages © 2026

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