{"meta":{"name":"FindSoftware","page":"https://findsoftware.frbit.cloud/php-gettext/","markdown":"https://findsoftware.frbit.cloud/php-gettext.md","license":"https://creativecommons.org/licenses/by/4.0/","attribution":"FindSoftware, CC BY 4.0","note":"Attributes are recorded, never scored. An absent field means unknown, never zero and never bad."},"record":{"id":"php-gettext","name":"Gettext","urls":{"repository":"https://github.com/php-gettext/Gettext"},"category":["library"],"description":"PHP library that imports, edits and exports gettext translations in PO, MO and other formats.","maintainer":"Oscar Otero Marzoa","firstRelease":2013,"hosting":["php"],"language":"php","runtime":["php"],"runtimeMin":"php 7.2","contentStore":null,"databases":null,"adminUi":null,"headlessApi":null,"templating":null,"i18n":null,"runsAs":null,"renderingModes":null,"installMethod":"composer","licenseModel":"open-source","license":"MIT","currentMajor":"5","latestReleaseDate":"2024-12-01T00:00:00.000Z","githubStargazers":703,"contributors":54,"packagistDownloads":36755974,"npmWeeklyDownloads":null,"dependentRepos":1457,"dependentPackages":99,"checkedAt":"2026-11-16T00:00:00.000Z","addedAt":"2026-11-16T00:00:00.000Z","sources":[{"field":"urls","url":"https://api.github.com/repos/php-gettext/Gettext","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"maintainer","url":"https://github.com/php-gettext/Gettext/blob/master/LICENSE","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"firstRelease","url":"https://api.github.com/repos/php-gettext/Gettext/tags?per_page=100","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"category","url":"https://github.com/php-gettext/Gettext/blob/master/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"language","url":"https://api.github.com/repos/php-gettext/Gettext","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtime","url":"https://github.com/php-gettext/Gettext/blob/master/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtimeMin","url":"https://github.com/php-gettext/Gettext/blob/v5.7.3/composer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"installMethod","url":"https://github.com/php-gettext/Gettext/blob/master/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"license","url":"https://github.com/php-gettext/Gettext/blob/v5.7.3/composer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"currentMajor","url":"https://api.github.com/repos/php-gettext/Gettext/releases","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"latestReleaseDate","url":"https://api.github.com/repos/php-gettext/Gettext/releases","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"githubStargazers","url":"https://api.github.com/repos/php-gettext/Gettext","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"contributors","url":"https://api.github.com/repos/php-gettext/Gettext/contributors?per_page=1","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"packagistDownloads","url":"https://packagist.org/packages/gettext/gettext.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentPackages","url":"https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/gettext%2Fgettext","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentRepos","url":"https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/gettext%2Fgettext","checkedAt":"2026-11-16T00:00:00.000Z"}],"status":"active","ai":"authored"},"prose":"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.\n\nThe package includes no scanner. Scanners for PHP and JS sources, and a JSON format, are separate packages that the README names.\n\n## Worth knowing\n\nA 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."}