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

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

gettext/robo
============

Robo tasks to manage gettext

v4.1.0(4y ago)747.9k5[4 issues](https://github.com/php-gettext/Robo/issues)1MITPHPPHP ^7.2|^8.0

Since Oct 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/php-gettext/Robo)[ Packagist](https://packagist.org/packages/gettext/robo)[ Docs](https://github.com/php-gettext/Robo)[ RSS](/packages/gettext-robo/feed)WikiDiscussions master Synced 1mo ago

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

Robo Tasks
==========

[](#robo-tasks)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7a0b6484d558eb861632748af00b117ff0e560894b6e08d609bffeb6df7cdd35/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676574746578742f726f626f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gettext/robo)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Quality Score](https://camo.githubusercontent.com/d92a052f53bfd6e63bdb6d13cba0d7c8f638db741620d57a4eacdec9b0437ca8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7068702d676574746578742f526f626f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/php-gettext/Robo)[![Total Downloads](https://camo.githubusercontent.com/1d25f1b4610ed1353e76e570a0d5cf2db71b13860d35822e0090c5a67f82a271/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676574746578742f726f626f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gettext/robo)

[Robo](http://robo.li) task to extract gettext values from files using [gettext/gettext](https://github.com/php-gettext/Gettext) library

Created by Oscar Otero   (MIT License)

Install
-------

[](#install)

Using composer:

```
composer require gettext/robo
```

usage example
-------------

[](#usage-example)

Create a RoboFile.php with the following code:

```
require 'vendor/autoload.php';

use Robo\Tasks;

class RoboFile extends Robo\Tasks
{
    use Gettext\Robo\Gettext;

    /**
     * Scan files to find new gettext values
     */
    public function gettext()
    {
        $this->taskGettext()
            //Scan folders with php files
            ->scan('templates/', '/\.php$/')
            ->scan('other-files/', '/\.php$/')

            //Save the domain1
            ->save('domain1', 'Locale/es/LC_MESSAGES/domain1.po')
            ->save('domain1', 'Locale/gl/LC_MESSAGES/domain1.po')

            //Save the domain2
            ->save('domain2', 'Locale/es/LC_MESSAGES/domain1.po')
            ->save('domain2', 'Locale/gl/LC_MESSAGES/domain1.po')

            ->run();
    }
}
```

Use robo to run the code:

```
robo gettext
```

---

Please see [CHANGELOG](CHANGELOG.md) for more information about recent changes.

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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 ~334 days

Recently: every ~474 days

Total

8

Last Release

1539d ago

Major Versions

v1.0.0 → v2.0.02016-06-15

v2.0.0 → v3.0.02016-08-31

v3.0.1 → v4.0.02019-11-05

PHP version history (4 changes)v1.0.0PHP &gt;=5.3.0

v2.0.0PHP &gt;=5.4

v4.0.0PHP ^7.2

v4.0.1PHP ^7.2|^8.0

### Community

Maintainers

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

---

Top Contributors

[![oscarotero](https://avatars.githubusercontent.com/u/377873?v=4)](https://github.com/oscarotero "oscarotero (12 commits)")[![epi-JRD](https://avatars.githubusercontent.com/u/45558568?v=4)](https://github.com/epi-JRD "epi-JRD (1 commits)")

---

Tags

gettexti18nroboi18ntranslationJSgettextpomoroboTasks

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[gettext/gettext

PHP gettext manager

70130.2M102](/packages/gettext-gettext)[sepia/po-parser

Gettext \*.PO file parser for PHP.

1271.5M19](/packages/sepia-po-parser)[phpmyadmin/motranslator

Translation API for PHP using Gettext MO files

591.8M8](/packages/phpmyadmin-motranslator)[om/potrans

Command line tool for translate Gettext with Google Translator API or DeepL API

10515.0k4](/packages/om-potrans)[gettext/php-scanner

PHP scanner for gettext

15471.2k12](/packages/gettext-php-scanner)[fisharebest/localization

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

3191.1k2](/packages/fisharebest-localization)

PHPackages © 2026

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