PHPackages                             antongorodezkiy/po-translation - 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. [CLI &amp; Console](/categories/cli)
4. /
5. antongorodezkiy/po-translation

ActiveLibrary[CLI &amp; Console](/categories/cli)

antongorodezkiy/po-translation
==============================

CLI client to translate .po files

11PHP

Since May 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/antongorodezkiy/po-translation)[ Packagist](https://packagist.org/packages/antongorodezkiy/po-translation)[ RSS](/packages/antongorodezkiy-po-translation/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

po-translation
==============

[](#po-translation)

Translation .po (gettext) files via Command Line Interface (CLI) with Yandex Translator API

Requirements
------------

[](#requirements)

- PHP 5.4+

Yandex Translator
-----------------

[](#yandex-translator)

This package is using Yandex Translator API  and you'll need to obtain Yandex Translator API key (free on a moment of develop this package) - [Get API Key](https://tech.yandex.ru/keys/get/?service=trnsl)

Dependencies
------------

[](#dependencies)

- [gettext/gettext](https://github.com/oscarotero/Gettext) - PHP library to collect and manipulate gettext (.po, .mo, .php, .json, etc)
- [yandex/translate-api](https://github.com/yandex-php/translate-api) - Client for Yandex.Translate API
- [wp-cli/php-cli-tools](https://github.com/wp-cli/php-cli-tools) - A collection of tools to help with PHP command line utilities

Usage
-----

[](#usage)

Run `php trans` via CLI interface from the package dir.

### Help

[](#help)

```
php trans -h

```

### Options

[](#options)

```
$ php trans -h

PO Translator (using Yandex Translator https://translate.yandex.com )
Flags
  --help, -h  Show this help screen

Options
  --api-key   Yandex API key
  --src-po    source .po-file path
  --src-lang  source language [default: en]

```

Example
-------

[](#example)

```
php trans --api-key trnsl.1.1.20162d0a.34add747dc2e2e2f --src-po /home/user/public_html/wp-content/themes/some-theme/languages/uk_UA.po

```

Copyright
---------

[](#copyright)

antongorodezkiy, 2016

License
-------

[](#license)

MIT

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/580599?v=4)[Eduard Kozachok](/maintainers/antongorodezkiy)[@antongorodezkiy](https://github.com/antongorodezkiy)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/antongorodezkiy-po-translation/health.svg)

```
[![Health](https://phpackages.com/badges/antongorodezkiy-po-translation/health.svg)](https://phpackages.com/packages/antongorodezkiy-po-translation)
```

###  Alternatives

[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24726.4M22](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

13045.3M6.2k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71464.1k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20718.9k21](/packages/winbox-args)

PHPackages © 2026

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