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

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

ondra/gettext-extractor
=======================

tool for extracting gettext messages

1.0.2(1y ago)0262BSD-3-ClausePHPPHP &gt;=8.0

Since Nov 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Too-d0p3/ondra-gettext-extractor)[ Packagist](https://packagist.org/packages/ondra/gettext-extractor)[ RSS](/packages/ondra-gettext-extractor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

GettextExtractor
================

[](#gettextextractor)

Tool for extracting gettext phrases from PHP files and Latte templates. Output is generated as a .pot file.

Fork of [voda/gettext-extractor](https://github.com/voda/gettext-extractor). Implements Latte3 support and more.

[![Latest Stable Version](https://camo.githubusercontent.com/336377e8b531ea977e6739da48e6a5befa5aa35732f91cd73cf544cab095c708/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6472612f676574746578742d657874726163746f722f762f737461626c65)](https://packagist.org/packages/ondra/gettext-extractor)[![Total Downloads](https://camo.githubusercontent.com/8948243731622af4956ed4b2eac0e0701d6c860c3ce8046d2efad82f2cf44d0e/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6472612f676574746578742d657874726163746f722f646f776e6c6f616473)](https://packagist.org/packages/ondra/gettext-extractor)[![License](https://camo.githubusercontent.com/ef587c17583e2df5d7047334ab606240737a6be891be13aab75983782c61c627/68747470733a2f2f706f7365722e707567782e6f72672f6f6e6472612f676574746578742d657874726163746f722f6c6963656e7365)](https://packagist.org/packages/ondra/gettext-extractor)

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

[](#installation)

To install gettext-extractor install it with [composer](https://getcomposer.org/):

`$ composer require ondra/gettext-extractor`

Supported file types
--------------------

[](#supported-file-types)

- .php
- .latte (Nette Latte templates)

License
-------

[](#license)

GettextExtractor is licensed under the New BSD License.

Based on code from [Karel Klíma](https://github.com/karelklima/gettext-extractor) and [Ondřej Vodáček](https://github.com/voda/gettext-extractor).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance46

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

Every ~253 days

Total

3

Last Release

404d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf7a3e80c8226cdb5692ffab5b0025171c68ce1654f14f83f6e00f16915fad73?d=identicon)[Ondřej Nevřela](/maintainers/Ond%C5%99ej%20Nev%C5%99ela)

---

Top Contributors

[![Too-d0p3](https://avatars.githubusercontent.com/u/19859284?v=4)](https://github.com/Too-d0p3 "Too-d0p3 (19 commits)")

---

Tags

l10ngettext

### Embed Badge

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

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

###  Alternatives

[symfony/intl

Provides access to the localization data of the ICU library

2.6k199.8M1.1k](/packages/symfony-intl)[gettext/gettext

PHP gettext manager

70530.2M102](/packages/gettext-gettext)[voda/gettext-extractor

tool for extracting gettext messages

2232.8k](/packages/voda-gettext-extractor)[gettext/languages

gettext languages with plural rules

7530.3M11](/packages/gettext-languages)[fisharebest/localization

A lightweight localization database and translation tools, with data from the CLDR, IANA, ISO, etc.

3191.1k2](/packages/fisharebest-localization)[maxakawizard/po-parser

Gettext \*.po parser for PHP

1771.5k](/packages/maxakawizard-po-parser)

PHPackages © 2026

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