Registry / utility / patrickschur-language-detection

patrickschur-language-detection

JSON →
library5.3.1phppackagistunverified

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

composer require patrickschur/language-detection
INSTALL
IMPORT
SIG · PATRICKSCHUR-LANGU
P
patrickschur-language-detection
utilityphpv5.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Language
✓ use LanguageDetection\Language;

Detects the language of a text string.

use LanguageDetection\Language; $ld = new Language(); $result = $ld->detect('This is an English sentence.'); echo $result->bestResults()->first();
Debug
Known issues
breakingRequires PHP 7.4 or higher.
fix
Upgrade PHP to version 7.4 or later.
affects: <5.0.0
Upgrade
Version history
5.3.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
patrickschur-language-detection — pip install patrickschur-language-detection · libregistry