PHPackages                             farazsms/symfony-bundle - 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/symfony-bundle

ActiveSymfony-bundle[Mail &amp; Notifications](/categories/mail)

farazsms/symfony-bundle
=======================

Symfony bundle for FarazSMS · IranPayamak (فراز اس ام اس · ایران پیامک) — https://farazsms.com. Autowire the FarazSMS client, configured from env.

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

Since Jun 18Pushed todayCompare

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

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

farazsms/symfony-bundle
=======================

[](#farazsmssymfony-bundle)

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

-
-

Symfony bundle that autowires the [`farazsms/php`](https://farazsms.com) client into your application, configured from environment variables. Supports Symfony 6 &amp; 7 and PHP &gt;= 8.1.

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

[](#installation)

```
composer require farazsms/symfony-bundle
```

With Symfony Flex the bundle is registered automatically. Otherwise add it to `config/bundles.php`:

```
return [
    // ...
    FarazSMS\SymfonyBundle\FarazSMSBundle::class => ['all' => true],
];
```

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

[](#configuration)

Create `config/packages/farazsms.yaml`:

```
farazsms:
    api_key: '%env(FARAZSMS_API_KEY)%'
    # base_url defaults to https://api.iranpayamak.com
    # base_url: '%env(FARAZSMS_BASE_URL)%'
```

Set the API key in your `.env`:

```
FARAZSMS_API_KEY=your-api-key-here
```

Usage
-----

[](#usage)

The `FarazSMS\FarazSMS` client is registered as a service and can be autowired directly into your own services and controllers:

```
use FarazSMS\FarazSMS;

final class NotificationService
{
    public function __construct(private FarazSMS $sms) {}

    public function notify(): void
    {
        $this->sms->sendPattern('your-pattern-code', '0912xxxxxxx', [
            'name' => 'Ali',
        ]);

        // or a simple message:
        // $this->sms->sendSimple('Hello', ['0912xxxxxxx'], '90008361');

        // check balance:
        // $balance = $this->sms->balance();
    }
}
```

License
-------

[](#license)

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

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

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

symfonysmsfarazsmsiranpayamak

### Embed Badge

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

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

PHPackages © 2026

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