PHPackages                             cnpait/detect\_encoding - 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. cnpait/detect\_encoding

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cnpait/detect\_encoding
=======================

Cyrillic text encoding detection class

733.1k↓36.4%6PHP

Since Jan 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ivanmtw/detect_encoding)[ Packagist](https://packagist.org/packages/cnpait/detect_encoding)[ RSS](/packages/cnpait-detect-encoding/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Cyrillic text encoding detection class
======================================

[](#cyrillic-text-encoding-detection-class)

Detect utf-8, windows-1251, koi8-r, iso8859-5 cyrillic encoding

Installation with Composer
--------------------------

[](#installation-with-composer)

Declare detect\_encoding as a dependency in your projects `composer.json` file:

```
{
  "require": {
    "ivanmtw/detect_encoding": "dev-master"
  }
}
```

Usage Example
-------------

[](#usage-example)

```

```

Requirements
------------

[](#requirements)

```
PHP 5.3 and up.

```

Класс для определения кодировки текста. Использует статистические методы, см. исходные статьи:

-
-

Код является оберткой, готовой к эксплуатации, на основе [https://github.com/m00t/detect\_encoding/](https://github.com/m00t/detect_encoding/)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cd7584ac3e42ef8bb3566d56e26cae8fb6e978d4ef0d5788c345096359694c9?d=identicon)[ivanmtw](/maintainers/ivanmtw)

---

Top Contributors

[![ivanmtw](https://avatars.githubusercontent.com/u/668626?v=4)](https://github.com/ivanmtw "ivanmtw (15 commits)")[![anton-siardziuk](https://avatars.githubusercontent.com/u/301661?v=4)](https://github.com/anton-siardziuk "anton-siardziuk (1 commits)")[![a-t](https://avatars.githubusercontent.com/u/7299277?v=4)](https://github.com/a-t "a-t (1 commits)")[![bpteam](https://avatars.githubusercontent.com/u/1714419?v=4)](https://github.com/bpteam "bpteam (1 commits)")

### Embed Badge

![Health badge](/badges/cnpait-detect-encoding/health.svg)

```
[![Health](https://phpackages.com/badges/cnpait-detect-encoding/health.svg)](https://phpackages.com/packages/cnpait-detect-encoding)
```

PHPackages © 2026

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