peterkahl/charset-from-string (packagist): Identifies predominant script (character set, language) in a string.
Keywords: i18n|multilingual|language-detection