PackageTrack
Sign in Get early access

wolfcast/browser-detection

The Wolfcast BrowserDetection PHP class facilitates the identification of the user's environment such as Web browser, version, platform family, platform version or if it's a mobile device or not.

2.9.9 1.2M downloads/mo #3947 most downloaded on Packagist Wolfcast/BrowserDetection

What this package is like to depend on

Last release 1 years ago

23 Mar 2025

Release timing varies

gaps range from 2 weeks to 2.2 years

Most releases are documented

notes for 10 of 12 stable releases

Nothing withdrawn

no release was ever pulled

10 years old

12 releases · first in 2016

0 releases in the last 12 months

see the full history below

Release timeline

12 releases · Aug 2016 to Mar 2025
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 12
  1. 2.9.9 23 Mar 2025
    Release notes

    March 23, 2025

    What's new since last version:

    • Added macOS Sequoia detection for browsers that still correctly report the macOS version.
    Open source →
  2. 2.9.8 22 Apr 2024
    Release notes

    April 21, 2024

    What's new since last version:

    • Added macOS Sonoma and macOS Ventura detection. Note that all the majors Web browsers have reported macOS Catalina since 2021 for any macOS 11+ versions. See the documentation of macVerToStr() for more details.
    • Improved the library documentation when detecting Windows version names since Windows 11 is always reported as Windows 10. See windowsNTVerToStr() for more details.
    • Updated HTML documentation of the library to the latest version of phpDocumentor.
    Open source →
  3. 2.9.7 21 Sep 2022
    Release notes

    September 20, 2022

    What's new since last version:

    • Changed licensing to dual licensing: MIT or LGPL-3.0-only. This has no impact on existing users. You can continue under the previous license or switch to MIT.
    Open source →
  4. 2.9.6 02 May 2022
    Release notes

    May 1, 2022

    What's new since last version:

    • Added support for Chrome OS.
    • Added support for macOS Monterey and macOS Big Sur.
    • Now correctly detects AArch64 as 64-bit.
    • Added support for PHP 8.
    • Tested with latest Web Browsers and platforms.
    Open source →
  5. 2.9.5 02 Feb 2020
    Release notes

    February 2, 2020

    What's new since last version:

    • WARNING! Breaking change: complete rework of robots detection. Now robot name and version is detected in addition of browser name and version. Use getRobotName() and getRobotVersion() when isRobot() is true.
    • WARNING! Breaking change: due to robots detection rework the following methods signatures has changed (isRobot parameter removed): addCustomBrowserDetection(), checkSimpleBrowserUA(), checkBrowserUAWithVersion().
    • Added possibility to support new robots with addCustomRobotDetection().
    • Added support for the new Microsoft Edge based on Chromium.
    • Added version names for Android 10 and later (Google no longer use candy names for new versions).
    • Added macOS Catalina detection.
    • Added Windows Server 2019 detection (Windows Server 2016 can be no longer detected due to the fact that they both use the same version number and that the build is not included in the user agent).
    Open source →
  6. 2.9.3 27 Mar 2019
    Release notes

    March 27, 2019

    What's new since last version:

    • Fixed Edge detection on Android.
    • Added Android Q detection.
    • Now filtering superglobals.
    Open source →
  7. 2.9.2 01 Mar 2019
    Release notes

    February 28, 2019

    What's new since last version:

    • Fixed Opera detection.
    Open source →
  8. 2.9.1 24 Aug 2018
    Release notes

    August 23, 2018

    What's new since last version:

    • Fixed Chrome detection under iOS.
    • Added Android Pie detection.
    • Added macOS Mojave detection.
    Open source →
  9. 2.9.0 15 Jul 2018
    Release notes

    July 15, 2018

    What's new since last version:

    • WARNING! Breaking change: new Wolfcast namespace. Use new Wolfcast\BrowserDetection().
    • iPad, iPhone and iPod are all under iOS now.
    • Added Android Oreo detection.
    • Added macOS High Sierra detection.
    • Added UC Browser detection.
    • Improved regular expressions (even less false positives).
    • Removed AOL detection.
    • Removed the following Web browsers detection: Amaya, Galeon, NetPositive, OmniWeb, Vivaldi detection (use addCustomBrowserDetection()).
    • Removed the following legacy platforms detection: BeOS, OS/2, SunOS (use addCustomPlatformDetection()).

    To re-enable removed Web browsers and platforms in this release you can simply do:

    $browser = new Wolfcast\BrowserDetection();
    $browser->addCustomBrowserDetection('Amaya', 'amaya');
    $browser->addCustomBrowserDetection('Galeon');
    $browser->addCustomBrowserDetection('NetPositive');
    $browser->addCustomBrowserDetection('OmniWeb');
    $browser->addCustomBrowserDetection('Vivaldi');
    $browser->addCustomPlatformDetection('BeOS');
    $browser->addCustomPlatformDetection('OS/2');
    $browser->addCustomPlatformDetection('SunOS');
    
    Open source →
  10. 2.5.1 28 Nov 2016
    Release notes

    November 28, 2016

    What's new since last version:

    • Better detection of 64-bit platforms.
    Open source →
  11. 2.5.0 19 Aug 2016

    Nothing published for this version

  12. 2.4.0 02 Aug 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