PHPackages                             pervozdanniy/translation-storage - 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. pervozdanniy/translation-storage

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

pervozdanniy/translation-storage
================================

Storage for translations

v2.2.0(5y ago)068421MITPHPPHP ^7.2

Since Jan 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pervozdanniy/translation-storage)[ Packagist](https://packagist.org/packages/pervozdanniy/translation-storage)[ Docs](http://dev-api.translate.center/api-docs/)[ RSS](/packages/pervozdanniy-translation-storage/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (14)Used By (1)

Translate Storage Manager
=========================

[](#translate-storage-manager)

[![Latest Stable Version](https://camo.githubusercontent.com/b64426b6c7391009b9a4b477be6e8a9e3bb227888d0fddcde4eddc73a8198be4/68747470733a2f2f706f7365722e707567782e6f72672f706572766f7a64616e6e69792f7472616e736c6174696f6e2d73746f726167652f762f737461626c65)](https://packagist.org/packages/pervozdanniy/translation-storage)[![Total Downloads](https://camo.githubusercontent.com/181ca49901bb4eeedebc5b4461f63b5b66bc97c5199e84f23ef526061fad3d6b/68747470733a2f2f706f7365722e707567782e6f72672f706572766f7a64616e6e69792f7472616e736c6174696f6e2d73746f726167652f646f776e6c6f616473)](https://camo.githubusercontent.com/181ca49901bb4eeedebc5b4461f63b5b66bc97c5199e84f23ef526061fad3d6b/68747470733a2f2f706f7365722e707567782e6f72672f706572766f7a64616e6e69792f7472616e736c6174696f6e2d73746f726167652f646f776e6c6f616473)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

[API Documentation](http://dev-api.translate.center/api-docs/)

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

[](#installation)

The recommended way to install is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of Guzzle:

```
composer require pervozdanniy/translation-storage
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

You can then later update Guzzle using composer:

```
composer update
```

Usage
-----

[](#usage)

1. Create an api adapter

```
class ApiAdapter implements \Translate\StorageManager\Contracts\Api
{
    // MUST return data compatible with storage's data structure
    public function fetch(array $params = [], int $page = 1) : array
    {
        // TODO: Implement fetch() method.
        return [];
    }
}
```

2. Initialize Storage Manager

```
/** @var \Translate\StorageManager\Contracts\Api $api */
$api = new ApiAdapter();

$builder = \Elasticsearch\ClientBuilder::create();
// set all options for elastic client you need
$elastic = $builder->build();
$storage = new \Translate\StorageManager\Storage\ElasticStorage($elastic);
// you can pass any storage you want that implements \Translate\StorageManager\Contracts\TranslationStorage interface
$manager = new \Translate\StorageManager\Manager($api, $storage);
$manager->update(['en', 'es', 'ru']);
```

3. Update your translations whenever you need

```
/** @var \Translate\StorageManager\Manager $manager*/
//update all translation groups for specified languages
$manager->update(['en', 'es', 'ru']);

//update specified group
$manager->updateGroup('app', ['en', 'es', 'ru']);
```

### Configuration Options

[](#configuration-options)

OptionDescriptionDefault valueindexNameName of index created in Elasticsearch`translation`batchSizeNumber fo results storage fetching from Elasticsearch on `findByGroup` and `search` methods`500`refresh[refresh option](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-refresh.html) for `insert` and `bulkInsert` methods`false`

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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

Total

12

Last Release

2136d ago

Major Versions

v1.0.8 → v2.0.02020-06-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/92245b9c9f4b005adba4813db807b4786a50a3a2025dff137137cb798fa1de5e?d=identicon)[pervozdanniy](/maintainers/pervozdanniy)

---

Top Contributors

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

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/pervozdanniy-translation-storage/health.svg)

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

###  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)
