PHPackages                             panda/l10n - 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. panda/l10n

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

panda/l10n
==========

The Panda Localization Package.

v2.0.0(9y ago)21051MITPHPPHP ^7.0

Since Oct 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/PandaPlatform/panda-l10n)[ Packagist](https://packagist.org/packages/panda/l10n)[ Docs](http://pandaphp.org)[ RSS](/packages/panda-l10n/feed)WikiDiscussions 2.1 Synced 3w ago

READMEChangelog (4)Dependencies (3)Versions (7)Used By (1)

Panda Localization Package
==========================

[](#panda-localization-package)

This is the localization package of the Panda Platform. It provides a simple translation structure and process for your code.

[![StyleCI](https://camo.githubusercontent.com/dba894429ba85ae5919493ebd4b4d6074fcd7de19f77cf8a3bf6b92aeacaea77/68747470733a2f2f7374796c6563692e696f2f7265706f732f36393736353438372f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/69765487)

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

[](#installation)

This package is part of the [Panda Framework](https://github.com/PandaPlatform/panda-framework) but it's also available as a single package.

### Through the composer

[](#through-the-composer)

Add the following line to your `composer.json` file:

```
"panda/l10n": "^2.0"

```

Usage
-----

[](#usage)

The Translation class works using a given `FileProcessor` for the translation files. It uses the `FileProcessor` as a getter to get translations.

Each Processor can have its own implementation of handling files based on locale and packages.

### Translator

[](#translator)

The Translator interface can be used across the entire application. You have to define the application's `FileProcessor` first and then you can load your translations freely.

Example:

```
use Panda\Localization\Translation\JsonProcessor;
use Panda\Localization\Translator;

// Initialize the desired processor
$processor = new JsonProcessor('your_base_directory_for_translations');

// Initialize the Translator
$translator = new Translator($processor);

// Get a desired translation
$translation = $translator->translate('translation-key', 'package-name', 'en_US', 'default-translation-value-if-empty');
```

### JsonProcessor

[](#jsonprocessor)

When using the `JsonProcessor`, the translation files should be in the given structure:

```
BASE_DIRECTORY/{locale}/{package}.json

```

If no package name is given (or an empty package name), the 'default' package will be used (`default.json`).

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

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

Recently: every ~117 days

Total

6

Last Release

3082d ago

Major Versions

v1.0.2 → v2.0.02017-06-26

PHP version history (2 changes)v1.0PHP &gt;=5.5.9

v2.0.0PHP ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2780884?v=4)[Ioannis Papikas](/maintainers/ioannis-papikas)[@ioannis-papikas](https://github.com/ioannis-papikas)

---

Top Contributors

[![ioannis-papikas](https://avatars.githubusercontent.com/u/2780884?v=4)](https://github.com/ioannis-papikas "ioannis-papikas (30 commits)")

---

Tags

frameworklocalizationpanda-frameworkphp7

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/panda-l10n/health.svg)

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

###  Alternatives

[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k853.6M8.3k](/packages/symfony-http-kernel)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k246.0M11.1k](/packages/symfony-framework-bundle)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M373](/packages/easycorp-easyadmin-bundle)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k181.3M2.2k](/packages/symfony-security-bundle)[symfony/security-http

Symfony Security Component - HTTP Integration

1.7k172.8M347](/packages/symfony-security-http)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k50.1M314](/packages/api-platform-core)

PHPackages © 2026

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