{"id":95748,"library":"patrickschur-language-detection","title":"Language Detection","description":"A language detection library for PHP. Detects the language from a given text string.","status":"active","version":"5.3.1","language":"php","source_language":null,"source_url":"https://github.com/patrickschur/language-detection","tags":["language-detection","nlp","text-analysis"],"install":[{"cmd":"composer require patrickschur/language-detection","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Language","correct":"use LanguageDetection\\Language;"}],"quickstart":{"code":"use LanguageDetection\\Language;\n\n$ld = new Language();\n$result = $ld->detect('This is an English sentence.');\necho $result->bestResults()->first();","lang":"php","description":"Detects the language of a text string."},"warnings":[{"fix":"Upgrade PHP to version 7.4 or later.","message":"Requires PHP 7.4 or higher.","severity":"breaking","affected_versions":"<5.0.0"}],"env_vars":null,"search_vec":"'analysi':23 'detect':2,5,9,19 'given':14 'languag':1,4,11,18 'language-detect':17 'librari':6 'nlp':20 'php':8 'string':16 'text':15,22 'text-analysi':21","created_at":"2026-06-19T10:41:25.257878+00:00","updated_at":"2026-06-19T10:41:25.257878+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/patrickschur/language-detection","github":"https://github.com/patrickschur/language-detection","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}