PHPackages                             paliari/php-i18n - 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. paliari/php-i18n

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

paliari/php-i18n
================

1.2.0(6y ago)23.4k↓50%1MITPHP

Since Sep 15Pushed 6y ago2 watchersCompare

[ Source](https://github.com/paliari/php-i18n)[ Packagist](https://packagist.org/packages/paliari/php-i18n)[ RSS](/packages/paliari-php-i18n/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (7)Used By (1)

php-i18n
--------

[](#php-i18n)

#### Installation

[](#installation)

```
$ composer require paliari/php-i18n

```

#### Configuration

[](#configuration)

Create your yml locale files inside some folder in your project. See the yml file example:

```
pt-BR:
  hello: Olá I18n
  user:
    name: Nome do usuário
  errors:
    messages:
      unauthorized: Não autorizado
```

> You can use multiple languages and multiple files for each language, ex:
>
> - pt-BR.yml
> - models.pt-BR.yml
> - errors.pt-BR.yml
> - en.yml
> - models.en.yml
> - errors.en.yml

Say to the plugin where this files were placed

```
\Paliari\I18n::instance()->addLocalesPath(__DIR__ . '/config/locales')->setCurrentLocale('pt-BR');
```

#### Usage

[](#usage)

```
Paliari\I18n::instance()->hum('hello');
```

### Authors

[](#authors)

- [Daniel Fernando Lourusso](http://dflourusso.com.br)
- [Marcos Paliari](http://paliari.com.br)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 70% 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 ~195 days

Recently: every ~244 days

Total

6

Last Release

2554d ago

### Community

Maintainers

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

---

Top Contributors

[![dflourusso](https://avatars.githubusercontent.com/u/5544901?v=4)](https://github.com/dflourusso "dflourusso (21 commits)")[![paliari](https://avatars.githubusercontent.com/u/2801041?v=4)](https://github.com/paliari "paliari (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/paliari-php-i18n/health.svg)

```
[![Health](https://phpackages.com/badges/paliari-php-i18n/health.svg)](https://phpackages.com/packages/paliari-php-i18n)
```

###  Alternatives

[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4362.7M19](/packages/lexik-translation-bundle)[boxblinkracer/phpunuhi

Easy tool to work with translation files for validation, exports, imports and more.

83225.2k17](/packages/boxblinkracer-phpunuhi)[devitek/yaml-translation

Add YAML file support to Laravel TranslationServiceProvider

3345.0k2](/packages/devitek-yaml-translation)

PHPackages © 2026

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