PHPackages                             alikm6/php-pomo - 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. alikm6/php-pomo

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

alikm6/php-pomo
===============

PHP package for multi-lingualizing scripts using PO and MO files

v1.0.0(3y ago)1971MITPHPPHP ^7.4||^8.0

Since Mar 7Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP package for multi-lingualizing scripts using PO and MO files
================================================================

[](#php-package-for-multi-lingualizing-scripts-using-po-and-mo-files)

Introduction
------------

[](#introduction)

POMO is a PHP package that allows you to write multi-language scripts in PHP using PO and MO files. You can use the POEdit application to create and edit these files, making it easy to translate your application into multiple languages. This package is suitable for developers who want to create multilingual PHP applications with minimal effort.

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

[](#installation)

To install POMO, use Composer and run the following command:

```
composer require alikm6/php-pomo

```

Usage
-----

[](#usage)

To use POMO in your PHP application, you need to require the functions file located in `vendor/alikm6/php-pomo/l10n.php`. Once you have required this file, you can select the target MO file using the following code:

```
unload_textdomain('default');
load_textdomain('default', "languages/{$language_code}.mo");
```

Replace `$language_code` with the appropriate language code for the language you want to use. Once you have loaded the target MO file, you can translate text using the \_\_() function, for example:

```
__("Hello World")
```

This function will return the translated text, if it is available in the loaded MO file.

License
-------

[](#license)

This package is licensed under the MIT License. See the LICENSE file for details.

Credits
-------

[](#credits)

POMO is inspired by the POMO package used in WordPress. The files used in this package are located at:

-
-

The required changes have been made on these files and they have been used in this package.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

1168d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/20e44ed8a42ce96c95c932ad71524508fa3596eaab7962a581e4dfe07b812fe4?d=identicon)[alikm6](/maintainers/alikm6)

---

Top Contributors

[![alikm6](https://avatars.githubusercontent.com/u/57086050?v=4)](https://github.com/alikm6 "alikm6 (2 commits)")

---

Tags

pomopomo

### Embed Badge

![Health badge](/badges/alikm6-php-pomo/health.svg)

```
[![Health](https://phpackages.com/badges/alikm6-php-pomo/health.svg)](https://phpackages.com/packages/alikm6-php-pomo)
```

###  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)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[maxakawizard/po-parser

Gettext \*.po parser for PHP

1771.5k](/packages/maxakawizard-po-parser)[saeven/circlical-po-editor

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

118.1k](/packages/saeven-circlical-po-editor)

PHPackages © 2026

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