PHPackages                             danialpanah/farapayamak - 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. danialpanah/farapayamak

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

danialpanah/farapayamak
=======================

Laravel Package For Sending Text Messages(SMS) Through Farapayamak API.

1.0.1(6y ago)3121MITPHPCI failing

Since Mar 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/danialrp/laravel-farapayamak)[ Packagist](https://packagist.org/packages/danialpanah/farapayamak)[ RSS](/packages/danialpanah-farapayamak/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

Laravel Farapayamak
===================

[](#laravel-farapayamak)

[![Build Status](https://camo.githubusercontent.com/9c510f81f26646e60989d102a28a54cefed48c02158a11b717b7290c997283cc/68747470733a2f2f7472617669732d63692e6f72672f64616e69616c72702f6c61726176656c2d66617261706179616d616b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/github/danialrp/laravel-farapayamak)[![Latest Release on Packagist](https://camo.githubusercontent.com/0cb38f069eb6ff0aa7e0e799ad8b9d2c9100cdddf917ffb1f8eca9734f7c9ee8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616e69616c70616e61682f66617261706179616d616b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/danialpanah/farapayamak)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

- [Introduction](#introduction)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Support &amp; Security](#support-security)
- [Farapayamak Documentation](https://farapayamak.ir/content/webservice)
- [License](#license)

Introduction
------------

[](#introduction)

By using this package you can send SMS Text Messages through Farapayamak RESTful Web Services with your Laravel application.

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

[](#installation)

- Use following command to install:

```
composer require danialpanah/farapayamak
```

**This package supports Laravel auto-discovery feature. If you are using Laravel 5.5 or greater no need to do any further actions, otherwise follow below steps.**

- Add the service provider to your `providers[]` array in `config/app.php` in your laravel application:

```
DanialPanah\Farapayamak\FarapayamakServiceProvider::class
```

- For using Laravel Facade add the alias to your `aliases[]` array in `config/app.php` in your laravel application:

```
'Farapayamak': DanialPanah\Farapayamak\Facades\Farapayamak::class
```

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

[](#configuration)

- After installation, you need to add you Farapayamak settings. You can update **config/farapayamak.php** published file or in you Laravel **.env** file.
- Run the following command to publish the configuration file:

```
php artisan vendor:publish --provider "DanialPanah\Farapayamak\FarapayamakServiceProvider"
```

- **config/farapayamak.php**

```
return [
    'username' => env('FARAPAYAMAK_USERNAME', ''),
    'password' => env('FARAPAYAMAK_PASSWORD', ''),
    'from' => env('FARAPAYAMAK_FROM', '')
];
```

- Add this to `.env.example` and `.env` files:

```
#Farapayamak Credentials and settings
FARAPAYAMAK_USERNAME=
FARAPAYAMAK_PASSWORD=
FARAPAYAMAK_NUMBER=

```

Usage
-----

[](#usage)

Following are some ways which you can have access to farapayamak package:

```
// Importing the class namespaces before using it
use DanialPanah\Farapayamak\Farapayamak;

$data = [
   'to' => '09121111111',
   'text' => 'Test Message..'
];

$textMessage = new Farapayamak();
$response = $textMessage->send($data);

```

- Using Facades:

```
use DanialPanah\Farapayamak\Facades\Farapayamak;

$response = Farapayamak::send($data);

```

- Sending to multiple recipients:

```
$numbers = ['09121111111', '09132222222', '09153333333'];

$data = [
   'to' => $numbers,
   'text' => 'Multicast Test Message..'
];

$response = Farapayamak::send($data);

```

Support &amp; Security
----------------------

[](#support--security)

This package supports Laravel 5.1 or greater, 6.x and 7.x

- In case of discovering any issues, please create one on the [Issues](https://github.com/danialrp/laravel-farapayamak/issues) section.
- For contribution, fork this repo and implements your code, then create a PR.

License
-------

[](#license)

This repository is an open-source software under the [MIT](https://choosealicense.com/licenses/mit/) license.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

Total

2

Last Release

2238d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

apirestweb servicesmsfarapayamaklaravel farapayamak

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/danialpanah-farapayamak/health.svg)

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

###  Alternatives

[infobip/infobip-api-php-client

PHP library for consuming Infobip's API

921.8M10](/packages/infobip-infobip-api-php-client)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)[e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

11259.2k](/packages/e-moe-guzzle6-bundle)[abantecart/ups-php

UPS PHP SDK based on OAuth

1815.3k](/packages/abantecart-ups-php)

PHPackages © 2026

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