PHPackages                             phellow/gettext - 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. phellow/gettext

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

phellow/gettext
===============

Gettext translator for intl and some other useful gettext stuff

1.0.1(11y ago)031MITPHP

Since Dec 13Pushed 11y ago1 watchersCompare

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

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

Install via Composer
--------------------

[](#install-via-composer)

Add the following dependency to your project's *composer.json* file:

```
{
    "require": {
        "phellow/gettext": "1.*"
    }
}
```

Usage
-----

[](#usage)

To translate texts via gettext, you have to set the translator first:

```
$translator = new \Phellow\Gettext\GettextTranslator('path/to/locales', 'gettextDomain');

$intl = new \Phellow\Intl\IntlService('en_US');
$intl->setTranslator($translator);

$text = $intl->_('translate this');
$text = $intl->_n('one', 'more', 2);
```

License
-------

[](#license)

The MIT license.

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

4247d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/864455?v=4)[Christian Blos](/maintainers/christianblos)[@christianblos](https://github.com/christianblos)

---

Top Contributors

[![christianblos](https://avatars.githubusercontent.com/u/864455?v=4)](https://github.com/christianblos "christianblos (1 commits)")

### Embed Badge

![Health badge](/badges/phellow-gettext/health.svg)

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

###  Alternatives

[smarty-gettext/smarty-gettext

Gettext plugin enabling internationalization in Smarty Package files

752.5M8](/packages/smarty-gettext-smarty-gettext)[devaslanphp/auto-translate

Auto generate translation JSON files

6627.3k](/packages/devaslanphp-auto-translate)

PHPackages © 2026

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