PHPackages                             nuxed/translation - 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. nuxed/translation

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

nuxed/translation
=================

Nuxed Translation

v2.0.1(5y ago)028MITHack

Since Dec 14Pushed 5y ago2 watchersCompare

[ Source](https://github.com/nuxed/translation)[ Packagist](https://packagist.org/packages/nuxed/translation)[ RSS](/packages/nuxed-translation/feed)WikiDiscussions develop Synced today

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

[![](https://avatars3.githubusercontent.com/u/45311177?s=200&v=4)](https://avatars3.githubusercontent.com/u/45311177?s=200&v=4)

[![Coding standards status](https://github.com/nuxed/translation/workflows/coding%20standards/badge.svg?branch=develop)](https://github.com/nuxed/translation/workflows/coding%20standards/badge.svg?branch=develop)[![Static analysis status](https://github.com/nuxed/translation/workflows/static%20analysis/badge.svg?branch=develop)](https://github.com/nuxed/translation/workflows/static%20analysis/badge.svg?branch=develop)[![Unit tests status](https://github.com/nuxed/translation/workflows/unit%20tests/badge.svg?branch=develop)](https://github.com/nuxed/translation/workflows/unit%20tests/badge.svg?branch=develop)[![Total Downloads](https://camo.githubusercontent.com/1bb7a92d81ef45b19a23ea417afc8b626f9f223ba4cd16fd5f5ef7c6b8d91ea9/68747470733a2f2f706f7365722e707567782e6f72672f6e757865642f7472616e736c6174696f6e2f642f746f74616c2e737667)](https://packagist.org/packages/nuxed/translation)[![Latest Stable Version](https://camo.githubusercontent.com/3a1d6c8679d1aae9744060ae94e883ec59ca9efcaa4436768f153aa8c6f2dcf3/68747470733a2f2f706f7365722e707567782e6f72672f6e757865642f7472616e736c6174696f6e2f762f737461626c652e737667)](https://packagist.org/packages/nuxed/translation)[![License](https://camo.githubusercontent.com/7f3442d382a2ed06803a82f658b92a31d6e025055034ac85bc3e5fba23a0f844/68747470733a2f2f706f7365722e707567782e6f72672f6e757865642f7472616e736c6174696f6e2f6c6963656e73652e737667)](https://packagist.org/packages/nuxed/translation)

Nuxed Translation
=================

[](#nuxed-translation)

The Nuxed Translation component provides tools to internationalize your application.

### Installation

[](#installation)

This package can be installed with [Composer](https://getcomposer.org).

```
$ composer require nuxed/translation
```

### Example

[](#example)

```
use namespace Nuxed\Translation;
use namespace Nuxed\Translation\Loader;

async function main(): Awaitable {
  $translator = new Translation\Translator('en');
  $translator->addLoader('json', new Loader\JsonLoader());

  // "translation/messages.en.json"s content :
  // {
  //   "hello": "Hello {name}"
  // }
  $translator->addResource('json', 'translation/messages.en.json', 'en');

  // "translation/messages.fr.json"s content :
  // {
  //   "hello": "Bonjour {name}"
  // }
  $translator->addResource('json', 'translation/messages.fr.json', 'fr');

  echo await $translator->trans('hello', dict['name' => 'saif']); // Hello saif

  echo await $translator->trans('hello', dict['name' => 'saif'], 'fr'); // Bonjour saif
}
```

---

### Security

[](#security)

For information on reporting security vulnerabilities in Nuxed, see [SECURITY.md](SECURITY.md).

---

### License

[](#license)

Nuxed is open-sourced software licensed under the MIT-licensed.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

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

Recently: every ~85 days

Total

6

Last Release

2048d ago

Major Versions

v1.2.0 → v2.0.02020-11-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/8489d7c85bfa7c637b8e13484f3f659652aea0568b6e7f9e66edeb0649b5a2f1?d=identicon)[azjezz](/maintainers/azjezz)

---

Top Contributors

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

---

Tags

hackhacklanghhvmi18nintlnuxedtranslationtranslator

### Embed Badge

![Health badge](/badges/nuxed-translation/health.svg)

```
[![Health](https://phpackages.com/badges/nuxed-translation/health.svg)](https://phpackages.com/packages/nuxed-translation)
```

###  Alternatives

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1927.0k1](/packages/smmoosavi-php-gettext)

PHPackages © 2026

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