PHPackages                             dhii/wp-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. dhii/wp-i18n

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

dhii/wp-i18n
============

Internationalization for WP

v0.1.0(7y ago)5405[1 PRs](https://github.com/wp-oop/wp-i18n/pulls)MITPHPPHP ^5.3 | ^7.0CI failing

Since Mar 26Pushed 5y ago4 watchersCompare

[ Source](https://github.com/wp-oop/wp-i18n)[ Packagist](https://packagist.org/packages/dhii/wp-i18n)[ RSS](/packages/dhii-wp-i18n/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelog (1)Dependencies (10)Versions (5)Used By (0)

WP I18n
=======

[](#wp-i18n)

[![Build Status](https://camo.githubusercontent.com/f3f7fbfb03c6aec2cebc449ed3d814e3e130eb1840b62fac24d3b941329d262d/68747470733a2f2f7472617669732d63692e6f72672f446869692f77702d6931386e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dhii/wp-i18n)[![Code Climate](https://camo.githubusercontent.com/cf32dfe6a6d36263bb9b755aa1f8d3bb62b6168fa4ca32506653142ff93961bd/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f77702d6931386e2f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/wp-i18n)[![Test Coverage](https://camo.githubusercontent.com/22972130e0fdf055333a63b9dc732b0a1c9d5531eb6be46204ed6746fc8091e7/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f77702d6931386e2f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/wp-i18n/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/25f0c0505bd270e22ccd490b598d384d5178e3e8dd9ffa37010f830587928a6b/68747470733a2f2f706f7365722e707567782e6f72672f646869692f77702d6931386e2f76657273696f6e)](https://packagist.org/packages/dhii/wp-i18n)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Internationalization for WP
---------------------------

[](#internationalization-for-wp)

Conventional WordPress means of i18n prevent us from writing good code. What this package solves:

- Use Dependency Injection, and avoid global state.
- De-couple your code from the global `__()` function, and thus from WP itself.
- Remove the duplicate hard-coded text domain; instead, centralize it, and de-couple consuming logic from it.
- Use a standards-compliant mechanism, while continuig to use the same familiar gettext tools, like Poedit.
- Make your code more testable.

For more information about the how and why, please see the [Wiki documentation](https://github.com/Dhii/wp-i18n/wiki).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

2218d ago

PHP version history (2 changes)v0.1.0PHP ^5.3 | ^7.0

0.2.x-devPHP ^5.6 | ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1894e91b32c9f80d8f30a42d360af6983a507f1cf2c621b7c9a0a0de14e011c5?d=identicon)[XedinUnknown](/maintainers/XedinUnknown)

---

Top Contributors

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

---

Tags

i18ninternationalizationwordpress

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dhii-wp-i18n/health.svg)

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

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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