PHPackages                             kosatyi/localize - 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. kosatyi/localize

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

kosatyi/localize
================

Gettext translation files generator

v1.0.1(5y ago)028MITPHP

Since Aug 4Pushed 4y agoCompare

[ Source](https://github.com/kosatyi/localize)[ Packagist](https://packagist.org/packages/kosatyi/localize)[ Docs](https://kosatyi.com/)[ RSS](/packages/kosatyi-localize/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (4)Used By (0)

Localize
========

[](#localize)

PHP Gettext translation generator from project files

[![](https://camo.githubusercontent.com/d93c5de42ce0bd3976518b0444be6e78253c9abbbf10ba969981e3ffb9cb7a74/68747470733a2f2f706f7365722e707567782e6f72672f6b6f73617479692f6c6f63616c697a652f76657273696f6e)](https://packagist.org/packages/kosatyi/localize)[![](https://camo.githubusercontent.com/83c22c0f58a4dd6eff521838cfb96779959e27fed9ad32c313e36b9690c4c175/68747470733a2f2f706f7365722e707567782e6f72672f6b6f73617479692f6c6f63616c697a652f646f776e6c6f616473)](https://packagist.org/packages/kosatyi/localize)[![](https://camo.githubusercontent.com/c85cb1ac31f33f8f417743b48efee3fe27e3f7f80f75e9930d284590dc6562a5/68747470733a2f2f706f7365722e707567782e6f72672f6b6f73617479692f6c6f63616c697a652f6c6963656e7365)](https://packagist.org/packages/kosatyi/localize)

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

[](#installation)

### System Requirements

[](#system-requirements)

PHP 5.4 and later.

### Dependencies

[](#dependencies)

Localize require the following extension in order to work properly:

- [`gettext`](http://php.net/manual/en/gettext.installation.php)

### Install with Composer

[](#install-with-composer)

If you’re using [Composer](https://getcomposer.org/), you can run the following command:

```
composer require kosatyi/localize
```

Or add dependency manually in `composer.json`

```
{
  "require": {
    "kosatyi/localize":"^1.0"
  }
}
```

### Basic Usage

[](#basic-usage)

```
require 'vendor/autoload.php';
use Kosatyi\Localize\Parser;
$localize = new Parser(array(
    'target'  => '.locales',
    'sources' => array('./src','./templates'),
    'locales' => array('en','ru')
));
$localize->initialize();
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

1858d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ffce18038170342c081e37ad729bdca12af24be276266934a9007b8ef07df0b0?d=identicon)[kosatyi](/maintainers/kosatyi)

---

Top Contributors

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

---

Tags

gettextgettext-started

### Embed Badge

![Health badge](/badges/kosatyi-localize/health.svg)

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

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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