PHPackages                             hassan7303/lumen-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. hassan7303/lumen-lang

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

hassan7303/lumen-lang
=====================

A package to translate Lumen validation messages to Persian.

1.0.5(1y ago)1112MITPHPPHP &gt;=7.4

Since Feb 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hassan7303/lumen-lang)[ Packagist](https://packagist.org/packages/hassan7303/lumen-lang)[ RSS](/packages/hassan7303-lumen-lang/feed)WikiDiscussions master Synced 1mo ago

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

[![Contributors](https://camo.githubusercontent.com/cda0b72feedf25b3e38b219c7a8c4b3155d7dfd27de51599f834316700703601/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f68617373616e373330332f6c756d656e2d6c616e672e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/hassan7303/lumen-lang/graphs/contributors)[![Forks](https://camo.githubusercontent.com/ba8b133f8591b35100ccd061e2c5be2d760cb6c9b8b6585ed4d32cd271ad9fb6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f68617373616e373330332f6c756d656e2d6c616e672e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d466f726b)](https://github.com/hassan7303/lumen-lang/network/members)[![Stargazers](https://camo.githubusercontent.com/66c55a0219b0384d3d3be4836dbb9510cfdf02f33e530e90b2961b1286e37fbc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f68617373616e373330332f6c756d656e2d6c616e672e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/hassan7303/lumen-lang/stargazers)[![MIT License](https://camo.githubusercontent.com/ee23f97ff53e65658369320e4757bb859211f7aba5e36e341b4e3a54d3302436/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f68617373616e373330332f6c756d656e2d6c616e672e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/hassan7303/lumen-lang/blob/master/LICENSE.md)[![LinkedIn](https://camo.githubusercontent.com/eb590f47a3fca74584d18db8dd3e985ae3d786f50cd41b7530c3af3885da233c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4c696e6b6564496e2d626c75652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c696e6b6564696e26636f6c6f72423d353535)](https://www.linkedin.com/in/hassan-ali-askari-280bb530a/)[![Telegram](https://camo.githubusercontent.com/77ee2f9dd40c91c1214e93beb543106a29e838da52a6062b3413139fd41a8415/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d54656c656772616d2d626c75652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d74656c656772616d26636f6c6f72423d353535)](https://t.me/hassan7303)[![Instagram](https://camo.githubusercontent.com/a18ff56cdd71d7d3bf248351145dbed1fd6d368a1d310541df010b58b637e219/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d496e7374616772616d2d7265642e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d696e7374616772616d26636f6c6f72423d353535)](https://www.instagram.com/hasan_ali_askari)[![GitHub](https://camo.githubusercontent.com/daf7a30a67f08c75264e0f56587c2e551b29a81e237c1f208453f49e00000e7e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d4769744875622d626c61636b2e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d67697468756226636f6c6f72423d353535)](https://github.com/hassan7303)[![Email](https://camo.githubusercontent.com/1706d5318ee16452c55cb6fba19a28641d6264c1cc6e8478cfcacadfbf18872a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d456d61696c2d6f72616e67652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d676d61696c26636f6c6f72423d353535)](mailto:hassanali7303@gmail.com)[![Website](https://camo.githubusercontent.com/aef464daa731427bdae000c56e4603ef859744c6988768b171f28578e2f44952/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d576562736974652d626c75652e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c26636f6c6f72423d353535)](https://hsnali.ir)

اضافه کردن زبان فارسی به لومن
=============================

[](#اضافه-کردن-زبان-فارسی-به-لومن)

۱. تنظیم مقدار پیش‌فرض زبان در `bootstrap/app.php`
--------------------------------------------------

[](#۱-تنظیم-مقدار-پیش‌فرض-زبان-در-bootstrapappphp)

فایل `bootstrap/app.php` را باز کنید و مقدار پیش‌فرض زبان را از `.env` دریافت کنید:

```
$app->setLocale(env('APP_LOCALE', 'fa'));
```

۲. مقداردهی متغیر زبان در `.env`
--------------------------------

[](#۲--مقداردهی-متغیر-زبان-در-env)

```
APP_LOCALE=en

```

۳. کپی کردن فایل‌های زبان فارسی
-------------------------------

[](#۳-کپی-کردن-فایل‌های-زبان-فارسی)

محتوای فایل‌های موجود در دایرکتوری fa را به مسیر resources/lang/fa انتقال دهید.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance42

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

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

Total

6

Last Release

462d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

validationlocalizationlanguagetranslatelumenmessagesiranpersianfarsifairanianiranian-developersiranian-developeriranian-developer-communityiranian-developer-communitiesiranian-developers-communityiranian-developers-communitiesiranian-developers-community-iraniranian-developers-communities-iraniranian-developers-community-iranianiranian-developers-communities-iranianiranian-developers-community-iranian-developersiranian-developers-communities-iranian-developersiranian-developers-community-iranian-developeriranian-developers-communities-iranian-developeriranian-developers-community-iranian-developers-iraniranian-developers-communities-iranian-developers-iraniranian-developers-community-iranian-developer-iraniranian-developers-communities-iranian-developer-iraniranian-developers-community-iranian-developers-iranianiranian-developers-communities-iranian-developers-iranianiranian-developers-community-iranian-developer-iranianiranian-developers-communities-iranian-developer-iranianiranian-developers-community-iranian-developers-iranian-developersiranian-developers-communities-iranian-developers-iranian-developersiranian-developers-community-iranian-developer-iranian-developersiranian-developers-communities-iranian-developer-iranian-developersiranian-developers-community-iranian-developers-iranian-developeriranian-developers-communities-iranian-developers-iranian-developeriranian-developers-community-iranian-developer-iranian-developeriranian-developers-communities-iranian-developer-iranian-developeriranian-developers-community-iranian-developers-iranian-developer-iraniranian-developers-communities-iranian-developers-iranian-developer-iraniranian-developers-community-iranian-developer-iranian-developers-iraniranian-developers-communities-iranian-developer-iranian-developers-iraniranian-developers-community-iranian-developers-iranian-developer-iranianiranian-developers-communities-iranian-developers-iranian-developer-iranianiranian-developers-community-iranian-developer-iranian-developers-iranian

### Embed Badge

![Health badge](/badges/hassan7303-lumen-lang/health.svg)

```
[![Health](https://phpackages.com/badges/hassan7303-lumen-lang/health.svg)](https://phpackages.com/packages/hassan7303-lumen-lang)
```

###  Alternatives

[iamfarhad/validation

🇮🇷 Complete Laravel Persian validation package - Iranian national ID, mobile numbers, Shamsi dates, IBAN/Sheba, postal codes &amp; more. Modern Laravel 10-12 support with both ValidationRule objects &amp; string-based rules.

2917.3k](/packages/iamfarhad-validation)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[sadegh19b/laravel-persian-validation

A comprehensive Laravel validation package for Persian text, numbers, dates, and Iranian national identifiers

18293.8k1](/packages/sadegh19b-laravel-persian-validation)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)[laravel-lang/attributes

Translation of form element names

273.8M11](/packages/laravel-lang-attributes)

PHPackages © 2026

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