PHPackages                             misieksnk/pomanager - 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. misieksnk/pomanager

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

misieksnk/pomanager
===================

PO files manager

1.0.4(10y ago)0185MIT

Since Jun 8Compare

[ Source](https://github.com/misieksnk/pomanager)[ Packagist](https://packagist.org/packages/misieksnk/pomanager)[ RSS](/packages/misieksnk-pomanager/feed)WikiDiscussions Synced yesterday

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

misieksnk/pomanager
===================

[](#misieksnkpomanager)

> PO files manager

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

[](#installation)

Simply use [Composer](https://getcomposer.org):

```
$ composer require misieksnk/pomanager
```

Usage
-----

[](#usage)

```
use MisiekSnk\PoManager\PoManager;
```

Open .po file

```
$poManager = new PoManager('filename.po');
```

Get all translations array from .po file

```
$poManager->getTranslationsArray();
//[
//    'msgid_1' => 'msgstr 1',
//    'msgid_2' => 'msgstr 2',
//    ...
//]
```

Get translation by msgid

```
$translation = $poManager->getTranslation('msgid_1'); // 'msgstr 1'
```

Change translation for msgid

```
$msgid = 'msgid_2';
$msgstr = 'translated msgid 2';
$poManager->setTranslation($msgid, $msgstr);
```

Update .mo file with current .po content

```
$poManager->updateMo();
```

ToDo
----

[](#todo)

- Batch updates

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Total

5

Last Release

3663d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10737507?v=4)[Michal Brygidyn](/maintainers/misieksnk)[@misieksnk](https://github.com/misieksnk)

---

Tags

translationpomo

### Embed Badge

![Health badge](/badges/misieksnk-pomanager/health.svg)

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

###  Alternatives

[gettext/gettext

PHP gettext manager

70231.8M116](/packages/gettext-gettext)[inpsyde/multilingual-press

Simply THE multisite-based free open source plugin for your multilingual websites.

2414.0k1](/packages/inpsyde-multilingual-press)[wcm/wcm-lang-switch

Adds a button to the admin toolbar. This buttons allows users to seamlessly switch between available languages..

202.0k](/packages/wcm-wcm-lang-switch)

PHPackages © 2026

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