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

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

switon/i18n
===========

Translation, locale, and message formatting for Switon (standalone)

v1.0.0(1mo ago)081MITPHPPHP &gt;=8.3CI passing

Since May 10Pushed 1mo agoCompare

[ Source](https://github.com/switon-php/i18n)[ Packagist](https://packagist.org/packages/switon/i18n)[ Docs](https://github.com/switon-php/i18n)[ RSS](/packages/switon-i18n/feed)WikiDiscussions main Synced 1w ago

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

Switon I18n Package
===================

[](#switon-i18n-package)

Translation, locale, and message formatting for Switon Framework.

Installation
------------

[](#installation)

```
composer require switon/i18n
```

**Requirements:** PHP 8.3+

Quick Start
-----------

[](#quick-start)

```
use Switon\Core\Attribute\Autowired;
use Switon\I18n\TranslatorInterface;

class WelcomeService
{
    #[Autowired] protected TranslatorInterface $translator;

    public function message(string $name): string
    {
        return $this->translator->translate('hello', ['name' => $name]);
    }
}

// @resources/i18n/en.php
// return [
//     'hello' => 'Hello, {name}!',
// ];
```

Docs:

License
-------

[](#license)

MIT.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance94

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

31d ago

### Community

Maintainers

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

---

Top Contributors

[![switon-php](https://avatars.githubusercontent.com/u/247358032?v=4)](https://github.com/switon-php "switon-php (8 commits)")

---

Tags

i18nlocaleswitontranslationsi18ntranslationslocaleswiton

### Embed Badge

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

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

###  Alternatives

[fightbulc/moment

Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js

9683.3M12](/packages/fightbulc-moment)[codemix/yii2-localeurls

Automatic locale/language management for URLs.

4071.3M30](/packages/codemix-yii2-localeurls)[gettext/languages

gettext languages with plural rules

7532.0M12](/packages/gettext-languages)[aplus/language

Aplus Framework Language Library

2371.7M15](/packages/aplus-language)[punic/punic

PHP-Unicode CLDR

1573.0M30](/packages/punic-punic)[outhebox/laravel-translations

Manage your Laravel translations with a beautiful UI. Add, edit, delete, import, and export translations with ease.

81096.3k](/packages/outhebox-laravel-translations)

PHPackages © 2026

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