patrickschur/language-detection
A language detection library for PHP. Detects the language from a given text string.
v5.3.1
3.9M downloads/mo
#1760 most downloaded on Packagist
patrickschur/language-detection
What this package is like to depend on
Last release 1 years ago
25 Mar 2025
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
0 releases in the last 12 months
see the full history below
Release timeline
21 releases · Dec 2016 to Mar 2025Releases
latest 21-
v5.3.125 Mar 2025Release notes
Open source →- Explicitly marking parameters as nullable to support PHP 8.4 (thanks to @JoyceBabu)
-
v5.3.018 Aug 2023Release notes
Open source →- Small performance improvement when used on large data sets (thanks to @Toflar)
- Added Malayalam language file (thanks to @JoyceBabu)
-
v5.2.001 Mar 2022Release notes
Open source →- Removed deprecation notices when using PHP 8.1 (#49)
- Removed support for PHP 7.3 because it's no longer supported
-
v5.1.005 Mar 2021 -
v5.0.011 Dec 2020Release notes
Open source →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.zto5.y.zwithout any problems if you are already using PHP 7.3 or higher.Added
- Support for PHP 8
- Swahili and Oromo language files (thanks to @matthewnessworthy)
Removed
- PHP 7.2 support as it is no longer supported
Release notes
Open source →Added
- Support for PHP 8
- Swahili and Oromo language files (thanks to @matthewnessworthy)
Removed
- PHP 7.2 support as it is no longer supported
-
v4.0.112 Aug 2020Release notes
Open source →- Fixed Unsupported operand types for custom directory (thanks to @iquito)
Release notes
Open source →Changed
- Fixed Unsupported operand types for custom directory (thanks to @iquito)
-
v4.0.009 Aug 2020Release notes
Open source →- 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.
Release notes
Open source →Changed
- Converted all resource files to PHP for performance reasons (thanks to @Pierstoval)
-
v3.4.216 Nov 2019 -
v3.4.116 Nov 2019Release notes
Open source →- Optimized performance by using fully-qualified function calls
- Updated to PHP 7.2
- Removed echo from Trainer class
-
v3.4.019 Sep 2018 -
v3.3.001 Feb 2018Release notes
Open source →Added
- Serbian cyrylic and serbian latin language files
Changed
- The method
__toStringreturns always a string
-
v3.2.019 Aug 2017Release notes
Open source →Added
- Experimental support for custom directories. You can now specify your own path for translation files.
- Credits
Changed
- Corrections to Amharic (
am) translation - Corrections to Czech (
cs) translation - Corrections to Lao (
lo) translation
-
v3.1.113 Apr 2017 -
v3.1.014 Mar 2017 -
v2.1.101 Feb 2017Release notes
Open source →Added
- Autloader script
Changed
- Fixed typos for Lithuanian language sample, thanks to tomasliubinas
- Fixed wrong ISO 639-1 codes
- Updated
_langs.json
Removed
php-nightlyin.travis.yml
-
v3.004 Feb 2017Nothing published for this version
-
v2.127 Jan 2017Nothing published for this version
-
v2.009 Jan 2017Nothing published for this version
-
v1.204 Jan 2017Nothing published for this version
-
v1.131 Dec 2016Nothing published for this version
-
v1.025 Dec 2016Nothing published for this version