PHPackages                             php-translation/cli - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. php-translation/cli

ActiveProject[Utility &amp; Helpers](/categories/utility)

php-translation/cli
===================

0.3.0(8y ago)512proprietaryPHPPHP ^7.0

Since Jul 5Pushed 8y ago3 watchersCompare

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

READMEChangelogDependencies (22)Versions (4)Used By (0)

CLI support for translation
===========================

[](#cli-support-for-translation)

[![Latest Version](https://camo.githubusercontent.com/ee605a26262b08b8c05fa4bf224938efb3a58882508c4d870a794c01b5f7c68d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f7068702d7472616e736c6174696f6e2f636c692e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-translation/cli/releases)[![Build Status](https://camo.githubusercontent.com/937690c5de0efd8571e21da227fd94bffa719f4ed813e73cc9cc8b955ca29f27/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7068702d7472616e736c6174696f6e2f636c692e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/php-translation/cli)[![Code Coverage](https://camo.githubusercontent.com/68526701e792257cf957857a0b0b16191493a4f51d56f90274cbe359c8570117/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7068702d7472616e736c6174696f6e2f636c692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/php-translation/cli)[![Quality Score](https://camo.githubusercontent.com/1f4787432756b60cd2dacd2c741dab0fa59080a4162b887f76a0775913961076/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7068702d7472616e736c6174696f6e2f636c692e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/php-translation/cli)

CLI support for translation. It allows you use the TranslationBundle without installing it in your application. You can use the WebUI and sync translations with remote storages.

### Use

[](#use)

To use the CLI you need to fetch the binary and add your configuration file.

```
wget https://php-translation.github.io/cli/downloads/translation.phar
chmod +x translation.phar
touch translation.yml
```

Example configuration is the same as for the TranslationBundle.

```
# translation.yml
translation:
  locales: ["en", "sv"]
  configs:
    app:
      project_root: "%translation.project_root%" # This line is important for the CLI config.
      dirs: ["%translation.project_root%/app/Resources/views", "%translation.project_root%/src"]
      output_dir: "%translation.project_root%/app/Resources/translations"
      excluded_names: ["*TestCase.php", "*Test.php"]
      excluded_dirs: [cache, data, logs]
```

> **Note:** "%translation.project\_root%" will be your `cwd()` from where you execute the command.

You may now run the same commands as you do with the TranslationBundle but without the "translation:" prefix

- download
- extract
- sync
- etc

```
php translation.phar download
```

You may also run PHP's web server with the WebUI with:

```
php translation.phar webui
```

### Build

[](#build)

To build a phar make sure you have [Box project](https://box-project.github.io/box2/) installed and `phar.readonly = 0` in your php.ini.

Read more at:

```
make build

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

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

Every ~23 days

Total

3

Last Release

3184d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/php-translation-cli/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M648](/packages/sylius-sylius)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[wallabag/wallabag

open source self hostable read-it-later web application

12.6k2.2k](/packages/wallabag-wallabag)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)

PHPackages © 2026

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