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

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

sophokles/translation
=====================

Sophokles Translation

1.0.4(4y ago)018GPL-3.0-or-laterPHPPHP &gt;=7.0, &lt;7.9

Since Jul 22Pushed 4y agoCompare

[ Source](https://github.com/ironAngel2000/sophokles-translation)[ Packagist](https://packagist.org/packages/sophokles/translation)[ RSS](/packages/sophokles-translation/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (6)Used By (0)

Sophokles Translation Class
===========================

[](#sophokles-translation-class)

Sophokles Translation Helper

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

[](#installation)

1. Include as composer dependency using `composer require sophokles/translation`
2. Run `composer install` to generate the vendor class autoloader
3. The classes from `Sophokles.tranlastion` can now be used in your composer project

Usage Examples
--------------

[](#usage-examples)

Small usage examples have been included in the [examples/](examples/) folder. The examples are PHP scripts which shows how the translation classes work.

> 1. Define the traget language

> 2. Register the JSON-tranlationfile to the tranlation class

> 3. Get the tranlations with the language class (lang)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

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

Total

5

Last Release

1796d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.0, &lt;7.4

1.0.4PHP &gt;=7.0, &lt;7.9

### Community

Maintainers

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

---

Top Contributors

[![KMS-BW](https://avatars.githubusercontent.com/u/39762135?v=4)](https://github.com/KMS-BW "KMS-BW (6 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/sophokles-translation/health.svg)](https://phpackages.com/packages/sophokles-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.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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