NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #1977 most downloaded on Packagist
A language detection library for PHP. Detects the language from a given text string.
Last release 2 years ago
no release in 18 months
Ships fairly regularly
a new release about every 8 months
Most releases are documented
notes for 15 of 21 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
21 releases · first in 2016
Explicitly marking parameters as nullable to support PHP 8.4 (thanks to @JoyceBabu )
Small performance improvement when used on large data sets (thanks to @Toflar )
One column per quarter.
Removed deprecation notices when using PHP 8.1
Added occitan language file (thanks to @Mejans )
Users of PHP 7.2 should upgrade as soon as possible, as they may be exposed to unpatched security vulnerabilities.
This release will add support for PHP 8 and removes the support for PHP 7.2 (because it's end of life). Users of PHP 7.2 should upgrade as soon as possible, as they may be exposed to unpatched security vulnerabilities.
You can upgrade from version 4.y.z to 5.y.z without any problems if you are already using PHP 7.3 or higher.
Fixed Unsupported operand types for custom directory (thanks to @iquito )
Optimized performance by using PHP instead of JSON as a database file (thanks to @Pierstoval )
Note: The format of the resource files changed. You have to upgrade your JSON files to PHP. Please take a look at the upgrade guide for more information.
Updated to PHPUnit 8
Optimized performance by using fully-qualified function calls
Changed danish language code from dk to da .
Changed danish language code from dk to da.
Serbian cyrylic and serbian latin language files
__toString returns always a stringExperimental support for custom directories. You can now specify your own path for translation files.
am) translationcs) translationlo) translationReturn empty object if no result was found
Support for the languages Lingala, Sanskrit, Tonga and Urdu
Fixed typos for Lithuanian language sample, thanks to tomasliubinas
_langs.jsonphp-nightly in .travis.ymlNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →