PHPackages                             osmansorkar/language-detector - 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. osmansorkar/language-detector

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

osmansorkar/language-detector
=============================

A Simple Class Language Detector from string

051PHP

Since Jan 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/osmansorkar/language-detector)[ Packagist](https://packagist.org/packages/osmansorkar/language-detector)[ RSS](/packages/osmansorkar-language-detector/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Language Detector
=====================

[](#php-language-detector)

[![Build Status](https://camo.githubusercontent.com/0fe73f177c761c499e135eeeac87d04823f21fb5aede9c10497f0093baf3ac92/68747470733a2f2f7472617669732d63692e6f72672f6f736d616e736f726b61722f6c616e67756167652d6465746563746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/osmansorkar/language-detector)

A simple Php class that Detect Language from string.

Support Language
================

[](#support-language)

- Bengali
- English
- Devanagari(Hindi)
- Tamil
- Kannada
- Gujarati
- Telugu
- Arabic You can Add you own Language If you want and you if you know PHP

```
$LanguageDetector=new \OsmanSorkar\Language\LanguageDetector("বাংলা");
//or
$LanguageDetector=new \OsmanSorkar\Language\LanguageDetector();
$LanguageDetector->setStr("বাংলা") // your str
$LanguageDetector->getLanguage() // return Bengali
$LanguageDetector->isLanguage("bengali") // return true
```

Please Help Us to upgrade this Class

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10289018?v=4)[osmansorkar](/maintainers/osmansorkar)[@osmansorkar](https://github.com/osmansorkar)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/osmansorkar-language-detector/health.svg)

```
[![Health](https://phpackages.com/badges/osmansorkar-language-detector/health.svg)](https://phpackages.com/packages/osmansorkar-language-detector)
```

###  Alternatives

[functional-php/pattern-matching

Pattern matching for PHP with automatic destructuring.

8268.2k](/packages/functional-php-pattern-matching)

PHPackages © 2026

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