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 2w 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 52% 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

1905d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2576449?v=4)[Stepan Kosatyi](/maintainers/kosatyi)[@kosatyi](https://github.com/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

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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