PHPackages                             saeven/circlical-po-editor - 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. saeven/circlical-po-editor

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

saeven/circlical-po-editor
==========================

Gettext \*.PO file editor and parser for PHP.

0.9.1(8y ago)118.1k21MITPHPPHP &gt;=5.5.0

Since Jun 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Saeven/circlical-po-editor)[ Packagist](https://packagist.org/packages/saeven/circlical-po-editor)[ Docs](https://github.com/saeven/circlical-po-editor)[ RSS](/packages/saeven-circlical-po-editor/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

PHP Gettext Translation Editor
==============================

[](#php-gettext-translation-editor)

[![Build Status](https://camo.githubusercontent.com/009e8cc2c1c661ebb40ed04a2007f2ba4847b0fecd5823edf10fca17025d9801/68747470733a2f2f7472617669732d63692e6f72672f53616576656e2f636972636c6963616c2d706f2d656469746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Saeven/circlical-po-editor)

PHP Parser/Editor for Gettext PO files

PoEditor is a class that allows you to load / parse / manipulate / compile .po files using PHP. I built this to support a web-based PO file editor.

This repository is thoroughly tested, mosts tests were taken from [raulferras/PHP-po-parser](https://github.com/raulferras/PHP-po-parser), thank you!

It supports all of the same features, with a simpler and stable interface:

- headers (HeaderBlock)
- msgid (message id)
- msgstr (translation strings)
- msgctxt (context)
- msgid\_plural (plural translations)
- (flags, comments, source, references, annotations, etc.)
    ========================================================

    [](#flags-comments-source-references-annotations-etc)

When you parse a po file, it transforms it into **blocks** that you can cleanly manipulate to thereafter compile.

Usage
-----

[](#usage)

### Parsing Files

[](#parsing-files)

```
$po = new Circlical\PoEditor( 'file.po' );
$po->parse();
```

### Editing Blocks

[](#editing-blocks)

```
$po = new Circlical\PoEditor( 'file.po' );
$po->parse();
$po->getBlock( 'welcome' )->setMsgstr( "hola" );
$po->compile();
```

That transforms **file.po** from:

```
#: wp-admin/install.php:177
msgid "welcome"
msgstr "welcome"

```

to:

```
#: wp-admin/install.php:177
msgid "welcome"
msgstr "hola"

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community11

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

Total

2

Last Release

3203d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/887224?v=4)[Alexandre Lemaire](/maintainers/Saeven)[@Saeven](https://github.com/Saeven)

---

Top Contributors

[![Saeven](https://avatars.githubusercontent.com/u/887224?v=4)](https://github.com/Saeven "Saeven (19 commits)")

---

Tags

i18ngettextpoi10n

### Embed Badge

![Health badge](/badges/saeven-circlical-po-editor/health.svg)

```
[![Health](https://phpackages.com/badges/saeven-circlical-po-editor/health.svg)](https://phpackages.com/packages/saeven-circlical-po-editor)
```

###  Alternatives

[gettext/gettext

PHP gettext manager

70231.8M114](/packages/gettext-gettext)[sepia/po-parser

Gettext \*.PO file parser for PHP.

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

Translation API for PHP using Gettext MO files

601.8M9](/packages/phpmyadmin-motranslator)[maxakawizard/po-parser

Gettext \*.po parser for PHP

1773.9k](/packages/maxakawizard-po-parser)[gettext/translator

Gettext translator functions

115.0M13](/packages/gettext-translator)[phpmyadmin/twig-i18n-extension

Internationalization support for Twig via the gettext library

20979.8k3](/packages/phpmyadmin-twig-i18n-extension)

PHPackages © 2026

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