PHPackages                             nook-ru/encoding-converter - 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. nook-ru/encoding-converter

Abandoned → [citrus-soft/encoding-converter](/?search=citrus-soft%2Fencoding-converter)Composer-plugin[Utility &amp; Helpers](/categories/utility)

nook-ru/encoding-converter
==========================

Provides transparent transcoding of bitrix language files. Useful when bitrix installation and packages have different encodings

0.1.2(7y ago)0272MITPHP

Since Jul 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/nook-ru/encoding-converter)[ Packagist](https://packagist.org/packages/nook-ru/encoding-converter)[ Docs](https://github.com/nook-ru/encoding-converter)[ RSS](/packages/nook-ru-encoding-converter/feed)WikiDiscussions master Synced today

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

Плагин composer для конвертации пакетов в кодировку сайта
=========================================================

[](#плагин-composer-для-конвертации-пакетов-в-кодировку-сайта)

Пакеты для битрикса могут быть написаны в разных кодировках (`utf-8` или `windows-1251`). Использовать эти пакеты на битрикс-сайтах с произвольной кодировкой поможет этот плагин: **при установке или обновлении пакета** он автоматически **сконвертирует его в заданную кодировку сайта**.

Как использовать?
-----------------

[](#как-использовать)

Допустим, сайт работает в `utf-8`, а нужный нам пакет `citrus/iblock.element.form` написан в `windows-1251`.

Добавим `nook-ru/encoding-converter` как зависимость и укажем в ключе `extra.encoding-convert` название пакета и кодировку, в которую его нужно сконвертировать:

```
{
    "require": {
        "php": ">=5.3",
        "citrus/iblock.element.form": "0.*",
        "nook-ru/encoding-converter": "^0.1"
    },
    "extra": {
    	"encoding-convert": {
    		"citrus/iblock.element.form": "utf-8"
    	}
    }
}

```

Дополнительные возможности
--------------------------

[](#дополнительные-возможности)

После установки плагин можно использовать для перекодирования `lang-`файлов модуля, шаблона или компонента из коммандной строки: `composer encoding:convert [options] [--]   []`

```
~
$ composer help encoding:convert
Usage:
  encoding:convert [options] [--]   []

Arguments:
  path                           Directory in which to perform conversion (i.e. path to component, template or module)
  to                             Target encoding
  from                           Source encoding (if ommited, conversion performed between utf-8 and windows-1251)

Options:
  -l, --lang[=LANG]              Language to convert (for bitrix lang files) (default is ru)
  -a, --all[=ALL]                Process all php files (not ony bitrix lang files)
  -h, --help                     Display this help message
  -q, --quiet                    Do not output any message
  -V, --version                  Display this application version
      --ansi                     Force ANSI output
      --no-ansi                  Disable ANSI output
  -n, --no-interaction           Do not ask any interactive question
      --profile                  Display timing and memory usage information
      --no-plugins               Whether to disable plugins.
  -d, --working-dir=WORKING-DIR  If specified, use the given directory as working directory.
  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
 Convert encoding of bitrix lang files (*.php in lang// subfolders)

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

2899d ago

### Community

Maintainers

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

---

Top Contributors

[![nook-ru](https://avatars.githubusercontent.com/u/444489?v=4)](https://github.com/nook-ru "nook-ru (7 commits)")

---

Tags

helperencodingbitrixlanglanguage files

### Embed Badge

![Health badge](/badges/nook-ru-encoding-converter/health.svg)

```
[![Health](https://phpackages.com/badges/nook-ru-encoding-converter/health.svg)](https://phpackages.com/packages/nook-ru-encoding-converter)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M688](/packages/barryvdh-laravel-ide-helper)[paragonie/constant_time_encoding

Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)

901329.7M148](/packages/paragonie-constant-time-encoding)[beste/json

A simple JSON helper to decode and encode JSON

4222.7M3](/packages/beste-json)[chillerlan/php-settings-container

A container class for immutable settings objects. Not a DI container.

3427.3M21](/packages/chillerlan-php-settings-container)

PHPackages © 2026

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