PHPackages                             gugglegum/translate - 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. gugglegum/translate

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

gugglegum/translate
===================

Simple but yet powerful localization for your application

017PHP

Since Jul 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gugglegum/translate)[ Packagist](https://packagist.org/packages/gugglegum/translate)[ RSS](/packages/gugglegum-translate/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Translate
=========

[](#translate)

This is extremely small and simple but yet powerful library to add localization to your app. It's as powerful as it's simple.

The basic idea consist of storing translations right in the PHP code and access them by calling static methods. Every translated phrase is stored under unique string key with naming convention for methods and properties. Simple translations which may have only named placeholders to be replaced with some values are stored in static properties. Complex translations which may vary depending on passed arguments are defined in static methods. To not to load all translations into the memory at once - split it on different classes and group by topic.

Advantages
----------

[](#advantages)

- IDE friendly. Code analysis will highlight errors and allow code completion. Renaming phrase key can be performed in all places at once with smart IDE like PhpStorm.
- Support of any features of any language (for example, complex plurals in Russian language).
- No special translation files and programs to update them.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c7fbb933ba217a413e632183e6061f81bd1d285bb86efa82289977038577d88?d=identicon)[gugglegum](/maintainers/gugglegum)

---

Top Contributors

[![gugglegum](https://avatars.githubusercontent.com/u/1580712?v=4)](https://github.com/gugglegum "gugglegum (6 commits)")

### Embed Badge

![Health badge](/badges/gugglegum-translate/health.svg)

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

###  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)
