PHPackages                             sadegh19b/laravel-persian-lang - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. sadegh19b/laravel-persian-lang

ActiveLibrary[Localization &amp; i18n](/categories/localization)

sadegh19b/laravel-persian-lang
==============================

Persian language files for Laravel

v2.1.2(4mo ago)115011MITPHP

Since Apr 21Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/sadegh19b/laravel-persian-lang)[ Packagist](https://packagist.org/packages/sadegh19b/laravel-persian-lang)[ RSS](/packages/sadegh19b-laravel-persian-lang/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (9)Used By (0)

Laravel Persian Language Files
==============================

[](#laravel-persian-language-files)

This package provides Persian language files for Laravel.

- Support Laravel 6 to 12

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

[](#installation)

### Option 1: Via Composer (Recommended)

[](#option-1-via-composer-recommended)

You can install the package via composer:

```
composer require sadegh19b/laravel-persian-lang
```

### Option 2: Manual Installation

[](#option-2-manual-installation)

If you prefer not to use Composer, you can manually copy the language files:

1. Download or clone this repository
2. Copy the `fa` folder from `lang/` to your Laravel application's `lang/` directory
3. The language files will be available in your application

Usage
-----

[](#usage)

### Setting the Language

[](#setting-the-language)

After installing the package, the Persian language files are **automatically available without any additional configuration**.

Simply set the locale to `fa` in your `config/app.php` file:

```
'locale' => 'fa',
```

Or set it dynamically in your code:

```
app()->setLocale('fa');
```

That's it! Now you can use Laravel's translation functions normally:

```
__('validation.required')           // فیلد الزامی است
__('auth.failed')                   // اطلاعات ورود نادرست است
__('passwords.reset')               // رمز عبور بازنشانی شد
trans('pagination.previous')        // قبلی
```

**No need to publish or use any namespace!** The package works automatically when your locale is set to `fa`.

### Publishing Language Files (Optional)

[](#publishing-language-files-optional)

If you want to customize the translations, you can optionally publish them:

```
php artisan vendor:publish --tag=persian-lang
```

This will copy the language files to `lang/fa/` in your application. Your published files will automatically take precedence over the package files.

### Validation attributes

[](#validation-attributes)

If you want to change validation attributes, just copy the `validation-attributes.php` file to your `lang/fa/` directory and don't need to publish other translation files.

Available Language Files
------------------------

[](#available-language-files)

- `auth.php` - Authentication related translations
- `passwords.php` - Password reset related translations
- `validation.php` - Validation related translations
- `validation-attributes.php` - Validation attributes related translations (added by me)
- `pagination.php` - Pagination related translations

Contributing
------------

[](#contributing)

Please feel free to submit any issues or pull requests.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance74

Regular maintenance activity

Popularity22

Limited adoption so far

Community8

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

Every ~34 days

Recently: every ~49 days

Total

8

Last Release

147d ago

Major Versions

v1.0.0 → v2.0.02025-04-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/72118b003b1b3a81d78c3dcc6be2580cf59c4ef0bf314c4f68d71b3dce6a3832?d=identicon)[sadegh19b](/maintainers/sadegh19b)

---

Top Contributors

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

---

Tags

laravellaravel-persianlaravel-persian-langpersianpersian-language

### Embed Badge

![Health badge](/badges/sadegh19b-laravel-persian-lang/health.svg)

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

###  Alternatives

[barryvdh/laravel-translation-manager

Manage Laravel Translations

1.7k3.6M17](/packages/barryvdh-laravel-translation-manager)[vluzrmos/language-detector

Detect the language for your application using browser preferences, subdomains or route prefixes.

109554.8k3](/packages/vluzrmos-language-detector)[kerigard/laravel-lang-ru

Ru lang for Laravel

2116.8k](/packages/kerigard-laravel-lang-ru)[highsolutions/laravel-translation-manager

Manage Laravel Translations

1518.8k](/packages/highsolutions-laravel-translation-manager)[amendozaaguiar/laraveles-spanish-for-jetstream

Archivos de traducción al español latinoamericano para Laravel con Jetstream (auth, pagination, passwords, validation + todas las cadenas de Jetstream).

1412.1k](/packages/amendozaaguiar-laraveles-spanish-for-jetstream)

PHPackages © 2026

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