PHPackages                             becklyn/translations-extractor - 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. becklyn/translations-extractor

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

becklyn/translations-extractor
==============================

Extracts translations from the given directory.

1.1.1(2y ago)19.6kBSD-3-ClausePHPPHP &gt;=7.4

Since Nov 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Becklyn/translations-extractor)[ Packagist](https://packagist.org/packages/becklyn/translations-extractor)[ Docs](https://github.com/Becklyn/translations-extractor)[ RSS](/packages/becklyn-translations-extractor/feed)WikiDiscussions 1.x Synced 1mo ago

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

Translations Extractor
======================

[](#translations-extractor)

CLI command, that helps extracting translations in Symfony projects.

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

[](#installation)

It's best to install this command using the `composer-bin-plugin`:

```
composer bin test req becklyn/translations-extractor
```

Usage
-----

[](#usage)

Call the command using the CLI:

```
./vendor/bin/extract-translations src/ templates/
```

As arguments, pass the list of directories to search in.

### Options

[](#options)

You can pass in extension names for twig, so that Twig doesn't complain about missing functions (or filters, etc.).

- `--mock-function` the names of the functions to mock
- `--mock-filter` the names of the filters to mock
- `--mock-test` the names of the tests to mock

```
./vendor/bin/extract-translations src/ --mock-filter normalize --mock-filter normalize_another
```

There is a list of predefined mocks, take a look in `MockExtension`.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~318 days

Total

6

Last Release

1091d ago

PHP version history (2 changes)1.0.0PHP ^7.1

1.1.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1044355?v=4)[Becklyn Studios](/maintainers/becklyn)[@Becklyn](https://github.com/Becklyn)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/becklyn-translations-extractor/health.svg)

```
[![Health](https://phpackages.com/badges/becklyn-translations-extractor/health.svg)](https://phpackages.com/packages/becklyn-translations-extractor)
```

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

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

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[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)[ec-cube/ec-cube

EC-CUBE EC open platform.

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

PHPackages © 2026

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