# Gettext

PHP library that imports, edits and exports gettext translations in PO, MO and other formats.


Source: https://findsoftware.frbit.cloud/php-gettext/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- repository: https://github.com/php-gettext/Gettext

### Identity

- status: active
- maintainer: Oscar Otero Marzoa
- maintainerType: unknown
- parent: unknown
- firstRelease: 2013
- hqCountry: unknown

### Kind

- category: library
- hosting: php
- language: php
- runtime: php
- runtimeMin: php 7.2
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: composer

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 5
- latestReleaseDate: 2024-12-01

### Adoption

- githubStargazers: 703
- packagistDownloads: 36755974
- npmWeeklyDownloads: not applicable
- contributors: 54
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 1457
- dependentPackages: 99

### Sources

- urls: https://api.github.com/repos/php-gettext/Gettext (read 2026-11-16)
- maintainer: https://github.com/php-gettext/Gettext/blob/master/LICENSE (read 2026-11-16)
- firstRelease: https://api.github.com/repos/php-gettext/Gettext/tags?per_page=100 (read 2026-11-16)
- category: https://github.com/php-gettext/Gettext/blob/master/README.md (read 2026-11-16)
- language: https://api.github.com/repos/php-gettext/Gettext (read 2026-11-16)
- runtime: https://github.com/php-gettext/Gettext/blob/master/README.md (read 2026-11-16)
- runtimeMin: https://github.com/php-gettext/Gettext/blob/v5.7.3/composer.json (read 2026-11-16)
- installMethod: https://github.com/php-gettext/Gettext/blob/master/README.md (read 2026-11-16)
- license: https://github.com/php-gettext/Gettext/blob/v5.7.3/composer.json (read 2026-11-16)
- currentMajor: https://api.github.com/repos/php-gettext/Gettext/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/php-gettext/Gettext/releases (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/php-gettext/Gettext (read 2026-11-16)
- contributors: https://api.github.com/repos/php-gettext/Gettext/contributors?per_page=1 (read 2026-11-16)
- packagistDownloads: https://packagist.org/packages/gettext/gettext.json (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/gettext%2Fgettext (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/gettext%2Fgettext (read 2026-11-16)

## Notes

Gettext is a PHP library that imports, edits and exports gettext translations. Loaders read PO and MO files into a collection of translations, each with its original text, translation, plural forms, references and comments, and generators write the collection back out. Scanners extract new strings from source files. A merge combines a scan with an existing PO file, and the options decide which translations, headers, comments, flags and references are kept.

The package includes no scanner. Scanners for PHP and JS sources, and a JSON format, are separate packages that the README names.

## Worth knowing

A strict PO loader fails on syntax errors and warns about plural counts and missing headers, so it can serve as a linter for PO files in a build. It is about 50% slower than the default loader.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
