PHPackages                             flextype-components/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. flextype-components/i18n

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

flextype-components/i18n
========================

I18n Component for messages internationalization of your application.

v1.3.0(6y ago)08.8k1MITPHPPHP ^7.1.3

Since Apr 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/flextype-components/i18n)[ Packagist](https://packagist.org/packages/flextype-components/i18n)[ Docs](https://github.com/flextype-components/i18n)[ RSS](/packages/flextype-components-i18n/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)DependenciesVersions (7)Used By (1)

I18n Component
==============

[](#i18n-component)

[![version](https://camo.githubusercontent.com/4ccfbc1f66dacffa6073039ddb59934ac5fb0c6a5623134ac1959169f0aa6aa4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e332e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265 "Version")](https://camo.githubusercontent.com/4ccfbc1f66dacffa6073039ddb59934ac5fb0c6a5623134ac1959169f0aa6aa4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e332e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![MIT License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/flextype-components/i18n/blob/master/LICENSE)

I18n Component for messages internationalization of your application.

### Installation

[](#installation)

```
composer require flextype-components/i18n

```

### Usage

[](#usage)

```
use Flextype\Component\I18n\I18n;
```

Add translation keys

```
I18n::add(['auth_login' => 'Login', 'auth_password' => 'Password'], [],'en_US');
```

Returns translation of a string. If no translation exists, the original string will be returned. No parameters are replaced.

```
$translated_string = I18n::find('auth_login');
```

Global Translation/Internationalization function. Accepts an translation key and returns its translation for selected language. If the given translation key is not available in the current dictionary the translation key will be returned.

```
// Display a translated message
echo __('auth_login', 'auth');

// With parameter replacement
echo __('auth_welcome_message', [':username' => $username], 'en_US');
```

Set default locale

```
I18n::$locale = 'en_US';
```

License
-------

[](#license)

See [LICENSE](https://github.com/flextype-components/i18n/blob/master/LICENSE)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~129 days

Total

6

Last Release

2405d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/477114?v=4)[Sergey Romanenko](/maintainers/Awilum)[@Awilum](https://github.com/Awilum)

---

Top Contributors

[![Awilum](https://avatars.githubusercontent.com/u/477114?v=4)](https://github.com/Awilum "Awilum (8 commits)")

---

Tags

internationalizationi18nstringtranslationtext

### Embed Badge

![Health badge](/badges/flextype-components-i18n/health.svg)

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

###  Alternatives

[tractorcow/silverstripe-fluent

Simple localisation for Silverstripe

92421.6k26](/packages/tractorcow-silverstripe-fluent)[inpsyde/multilingual-press

Simply THE multisite-based free open source plugin for your multilingual websites.

2414.0k1](/packages/inpsyde-multilingual-press)[skillshare/formatphp

Internationalize PHP apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.

8029.6k](/packages/skillshare-formatphp)[smousss/laravel-globalize

Make Laravel projects translatable in a matter of seconds!

2266.3k](/packages/smousss-laravel-globalize)[delight-im/i18n

Internationalization and localization for PHP

625.2k3](/packages/delight-im-i18n)[mediawiki/translate

The only standard solution to translate any kind of text with an avant-garde web interface within MediaWiki, including your documentation and software

457.9k](/packages/mediawiki-translate)

PHPackages © 2026

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