PHPackages                             wdmg/lingua-detect - 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. wdmg/lingua-detect

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

wdmg/lingua-detect
==================

Language detection by source text.

1.0.1(6y ago)026MITPHPPHP &gt;=5.6CI failing

Since May 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/wdmg/lingua-detect)[ Packagist](https://packagist.org/packages/wdmg/lingua-detect)[ Docs](https://github.com/wdmg/lingua-detect)[ RSS](/packages/wdmg-lingua-detect/feed)WikiDiscussions master Synced 2d ago

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

[![Downloads](https://camo.githubusercontent.com/cd44e56085e891abc050d6c04db445be6a86eb9118299f3b5058d6e19451c16e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f77646d672f6c696e6775612d6465746563742e737667)](https://packagist.org/packages/wdmg/lingua-detect)[![Packagist Version](https://camo.githubusercontent.com/9d7344fc4d7afceccc0d9c0c69e714c35830df4194fbdcfc6a46256bede53e8a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f77646d672f6c696e6775612d6465746563742e737667)](https://packagist.org/packages/wdmg/lingua-detect)[![Progress](https://camo.githubusercontent.com/d2c102b075c16f8a841e697b04c43bc93c8d092c5795ad8b3090d7fa993c258a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d72656164795f746f5f7573652d677265656e2e737667)](https://camo.githubusercontent.com/d2c102b075c16f8a841e697b04c43bc93c8d092c5795ad8b3090d7fa993c258a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70726f67726573732d72656164795f746f5f7573652d677265656e2e737667)[![GitHub license](https://camo.githubusercontent.com/761c0d1fb7136f3fac20621a02a36dcb579064fe9858bf96dddfb9f5ef22fec8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f77646d672f6c696e6775612d6465746563742e737667)](https://github.com/wdmg/lingua-detect/blob/master/LICENSE)

LinguaDetect
============

[](#linguadetect)

Language detection by source text.

Based on alphabets and language recognition chart. It describes a variety of simple clues one can use to determine what language a document is written in with high accuracy. See more \[[https://en.wikipedia.org/wiki/Wikipedia:Language\_recognition\_chart](https://en.wikipedia.org/wiki/Wikipedia:Language_recognition_chart)\]

Support `en`, `ru`, `uk`, `fr`, `es`, `de`, `it`, `pl`, `hu`, `el` locales.

Requirements
============

[](#requirements)

- PHP 5.6 or higher

Installation
============

[](#installation)

To install the library, run the following command in the console:

`$ composer require "wdmg/lingua-detect"`

Usage
=====

[](#usage)

```

```

Status and version \[ready to use\]
===================================

[](#status-and-version-ready-to-use)

- v.1.0.1 - Added namespace
- v.1.0.0 - Added LinguaDetect() class

Copyrights
==========

[](#copyrights)

- Copyright (c) 2020 W.D.M.Group, Ukraine ()
- Copyright (c) 2020 by Alexsander Vyshnyvetskyy

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

2198d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1635637?v=4)[Alexsander Vyshnyvetskyy](/maintainers/alex-wdmg)[@alex-wdmg](https://github.com/alex-wdmg)

---

Top Contributors

[![alex-wdmg](https://avatars.githubusercontent.com/u/1635637?v=4)](https://github.com/alex-wdmg "alex-wdmg (5 commits)")

---

Tags

languagedetectionLinguaDetect

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wdmg-lingua-detect/health.svg)

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

###  Alternatives

[phpoption/phpoption

Option Type for PHP

2.7k541.2M159](/packages/phpoption-phpoption)[patrickschur/language-detection

A language detection library for PHP. Detects the language from a given text string.

8513.2M18](/packages/patrickschur-language-detection)[cbschuld/browser.php

A PHP Class to detect a user's Browser. This encapsulation provides a breakdown of the browser and the version of the browser using the browser's user-agent string. This is not a guaranteed solution but provides an overall accurate way to detect what browser a user is using.

5876.7M19](/packages/cbschuld-browserphp)[wapmorgan/morphos

A morphological solution for Russian and English language written completely in PHP. Provides classes to inflect personal names, geographical names, decline and pluralize nouns, generate cardinal and ordinal numerals, spell out money amounts and time.

8351.3M7](/packages/wapmorgan-morphos)[coderello/laravel-nova-lang

Language support for Laravel Nova.

4251.2M2](/packages/coderello-laravel-nova-lang)[snipe/banbuilder

Library to easily handle profanity filtering in PHP projects.

3371.5M3](/packages/snipe-banbuilder)

PHPackages © 2026

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