PHPackages                             it-tem-papa/i18next-php - 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. it-tem-papa/i18next-php

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

it-tem-papa/i18next-php
=======================

A port of the i18next JS library for PHP

v3.0.0(3y ago)35.0k↑221.4%2MITPHPPHP &gt;=8.0

Since Feb 17Pushed 3y agoCompare

[ Source](https://github.com/it-tem-papa/i18next-php)[ Packagist](https://packagist.org/packages/it-tem-papa/i18next-php)[ RSS](/packages/it-tem-papa-i18next-php/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

i18next-php
===========

[](#i18next-php)

A port of [i18next](https://www.i18next.com/) in PHP. With a rest API. (coming soon \[tm\])

Code in this repository is largely based on the original code base in JavaScript, rewritten in PHP. This project focuses only on the newest version of i18next, disregarding compatibility with previous ones.

### Warning!

[](#warning)

This version is usable, but could contain bugs. If you find any issues please report them or create a PR.

### Features

[](#features)

- PSR3 logging support (psr/log is a hard requirement, but you're not required to actually use a logger)
- Extremely similar API to the JS version
- PHP-specific features like interfaces for modules
- PHP 8.0+
- Automatic language detection support
- JSON v4 (required)

### Usage

[](#usage)

[View all examples here](examples)

- [Basic shared usage through the whole application](examples/example-shared.php)
- [Basic instancing of translation and separation from shared](examples/example-instance.php)
- [Basic plural handling](examples/example-plurals.php)
- [Multi plural handling](examples/example-multi-plurals.php)
- [Basic language detection](examples/example-detect.php)

### Basic example

[](#basic-example)

```
// You can also use I18n globally via I18n::get()

$i18n = new I18n([
    'lng'           =>  'en',
    'resources'     =>  [
        'en'        =>  [
            'translation'       =>  [
                'key'           =>  'Value',
                'key_other '    =>  'Value plural',
                'deeper'        =>  [
                    'key'           =>  'Deep value'
                ]
            ]
        ]
    ]
]);

$i18n->t('key'); // "Value"
$i18n->t('key', ['count' => 5]); // "Value plural"
$i18n->t('deeper.key'); // "Depp value"
```

### Composer

[](#composer)

Simply enter your project directory and run

`composer require it-tem-papa/i18next-php`

### Todo

[](#todo)

- Add event emitting

#### Packagist

[](#packagist)

Visit the page [here](https://packagist.org/packages/alpakaio/i18next-php)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.3% 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 ~95 days

Total

2

Last Release

1138d ago

Major Versions

v2.0.0 → v3.0.02023-05-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c5f30d6b1c031a89254e3bb91b055d35f6fa4cb06ad52439ecb719052572659?d=identicon)[efi-papa](/maintainers/efi-papa)

---

Top Contributors

[![it-tem-papa](https://avatars.githubusercontent.com/u/105340613?v=4)](https://github.com/it-tem-papa "it-tem-papa (11 commits)")[![deavial](https://avatars.githubusercontent.com/u/763805?v=4)](https://github.com/deavial "deavial (3 commits)")[![riddle418](https://avatars.githubusercontent.com/u/80154154?v=4)](https://github.com/riddle418 "riddle418 (1 commits)")

---

Tags

i18ntranslation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/it-tem-papa-i18next-php/health.svg)

```
[![Health](https://phpackages.com/badges/it-tem-papa-i18next-php/health.svg)](https://phpackages.com/packages/it-tem-papa-i18next-php)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[jms/translation-bundle

Puts the Symfony Translation Component on steroids

44311.1M75](/packages/jms-translation-bundle)[gettext/gettext

PHP gettext manager

70232.6M118](/packages/gettext-gettext)[skillshare/formatphp

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

8032.4k](/packages/skillshare-formatphp)[inpsyde/multilingual-press

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

2414.0k1](/packages/inpsyde-multilingual-press)

PHPackages © 2026

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