PackageTrack
Sign in Get early access

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 2025
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 21
  1. v5.3.1 25 Mar 2025
    Release notes
    • Explicitly marking parameters as nullable to support PHP 8.4 (thanks to @JoyceBabu)
    Open source →
  2. v5.3.0 18 Aug 2023
    Release notes
    • Small performance improvement when used on large data sets (thanks to @Toflar)
    • Added Malayalam language file (thanks to @JoyceBabu)
    Open source →
  3. v5.2.0 01 Mar 2022
    Release notes
    • Removed deprecation notices when using PHP 8.1 (#49)
    • Removed support for PHP 7.3 because it's no longer supported
    Open source →
  4. v5.1.0 05 Mar 2021
    Release notes
    • Added occitan language file (thanks to @Mejans)
    Open source →
  5. v5.0.0 11 Dec 2020
    Release notes

    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.

    Added

    Removed

    • PHP 7.2 support as it is no longer supported
    Open source →
    Release notes

    Added

    • Support for PHP 8
    • Swahili and Oromo language files (thanks to @matthewnessworthy)

    Removed

    • PHP 7.2 support as it is no longer supported
    Open source →
  6. v4.0.1 12 Aug 2020
    Release notes
    • Fixed Unsupported operand types for custom directory (thanks to @iquito)
    Open source →
    Release notes

    Changed

    • Fixed Unsupported operand types for custom directory (thanks to @iquito)
    Open source →
  7. v4.0.0 09 Aug 2020
    Release notes
    • 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.

    Open source →
    Release notes

    Changed

    • Converted all resource files to PHP for performance reasons (thanks to @Pierstoval)
    Open source →
  8. v3.4.2 16 Nov 2019
    Release notes
    • Updated to PHPUnit 8
    Open source →
    Release notes

    Changed

    • Removed a build failure by using a newer version of PHPUnit
    Open source →
  9. v3.4.1 16 Nov 2019
    Release notes
    • Optimized performance by using fully-qualified function calls
    • Updated to PHP 7.2
    • Removed echo from Trainer class
    Open source →
    Release notes

    Changed

    • Optimized performance by using fully-qualified function calls, thanks to draco2003
    • PHP 7.2 or higher is now used for testing
    • Removed output, see issue #22
    Open source →
  10. v3.4.0 19 Sep 2018
    Release notes

    Changed danish language code from dk to da.

    Open source →
    Release notes

    Changed

    • Danish language code, thanks to bbalet
    Open source →
  11. v3.3.0 01 Feb 2018
    Release notes

    Added

    • Serbian cyrylic and serbian latin language files

    Changed

    • The method __toString returns always a string
    Open source →
  12. v3.2.0 19 Aug 2017
    Release notes

    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
    Open source →
  13. v3.1.1 13 Apr 2017
    Release notes

    Changed

    • Return empty object if no result was found
    Open source →
  14. v3.1.0 14 Mar 2017
    Release notes

    Added

    • Support for the languages Lingala, Sanskrit, Tonga and Urdu
    Open source →
  15. v2.1.1 01 Feb 2017
    Release notes

    Added

    • Autloader script

    Changed

    • Fixed typos for Lithuanian language sample, thanks to tomasliubinas
    • Fixed wrong ISO 639-1 codes
    • Updated _langs.json

    Removed

    • php-nightly in .travis.yml
    Open source →
  16. v3.0 04 Feb 2017

    Nothing published for this version

  17. v2.1 27 Jan 2017

    Nothing published for this version

  18. v2.0 09 Jan 2017

    Nothing published for this version

  19. v1.2 04 Jan 2017

    Nothing published for this version

  20. v1.1 31 Dec 2016

    Nothing published for this version

  21. v1.0 25 Dec 2016

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive