Lightning Fast, Minimalist PHP User Agent String Parser.
MIT License
Bot releases are visible (Hide)
See 1.8.0 for changelog
Full Changelog: https://github.com/donatj/PhpUserAgent/compare/v0.22.0...v0.23.0
Published by donatj 12 months ago
Full Changelog: https://github.com/donatj/PhpUserAgent/compare/v1.7.0...v1.8.0
Published by donatj about 2 years ago
Published by donatj about 2 years ago
Full Changelog: https://github.com/donatj/PhpUserAgent/compare/v1.6.1...v1.7.0
Published by donatj over 2 years ago
https://github.com/donatj/PhpUserAgent/releases/tag/v1.6.1
Full Changelog: https://github.com/donatj/PhpUserAgent/compare/v0.21.0...v0.21.1
Published by donatj over 2 years ago
Full Changelog: https://github.com/donatj/PhpUserAgent/compare/v1.6.0...v1.6.1
Published by donatj over 2 years ago
https://github.com/donatj/PhpUserAgent/releases/tag/v1.6.0
Full Changelog: https://github.com/donatj/PhpUserAgent/compare/v0.20.0...v0.21.0
Published by donatj over 2 years ago
Full Changelog: https://github.com/donatj/PhpUserAgent/compare/v1.5.0...v1.6.0
Published by donatj about 3 years ago
Published by donatj over 3 years ago
Adds official support for TelegramBot and Twitterbot.
They were already detected but did not have tests.
Adds sniffing and support for iMessageBot.
This is a deprecated release for compatibility.
The functionality of this release is mirrored exactly by v1.3.0 and does not break compatibility. You can easily upgrade.
Please upgrade ASAP.
Published by donatj over 3 years ago
Adds official support for TelegramBot and Twitterbot.
They were already detected but did not have constants nor tests.
Adds sniffing and support for iMessageBot.
Published by donatj over 3 years ago
Adds:
This is a deprecated release for compatibility.
The functionality of this release is mirrored exactly by v1.3.0 and does not break compatibility. The 0.x releases will soon no longer be maintained. Please upgrade ASAP.
Published by donatj over 3 years ago
Adds:
Published by donatj almost 4 years ago
Adr
rather than Android
- handle this weirdness.Published by donatj almost 4 years ago
Adr
rather than Android
- handle this weirdness.This is a deprecated release for compatibility.
The functionality of this release is mirrored exactly by v1.2.0 and does not break compatibility. The 0.x releases will soon no longer be maintained. Please upgrade ASAP.
Published by donatj about 4 years ago
Adds support for the Applebot - http://www.apple.com/go/applebot
The functionality of this release is mirrored by v1.1.0 and does not break backwards compatibility. The 0.x releases will soon no longer be maintained.
Published by donatj about 4 years ago
Adds support for the Applebot - http://www.apple.com/go/applebot
Published by donatj over 4 years ago
This is a major rework of the entire project that took just under 2 years. The utmost care went into considering how to keep this both the small and light library the community enjoys, but also add features people have been clamoring for since the beginning. I really believe we've hit the nail on the head here.
A lot of work went into not breaking compatibility especially for people not using composer. If you encounter any issues with compatibility let us know and we will fix it ASAP.
All required "functional" logic remains in a single file src/UserAgentParser.php
This is specifically to make the library easy to use for people who do not use composer.
\donatj\UserAgent\UserAgentParser
- Object oriented parse_user_agent
call wrapper.\donatj\UserAgent\UserAgent
- Object oriented response object.\donatj\UserAgent\UserAgentInterface
- Helper interface for test mocking.\donatj\UserAgent\parse_user_agent
function to mirror global parse_user_agent
\donatj\UserAgent\PLATFORM = 'platform';
\donatj\UserAgent\BROWSER = 'browser';
\donatj\UserAgent\BROWSER_VERSION = 'version';
\donatj\UserAgent\Browsers::*
\donatj\UserAgent\Platforms::*
parse_user_agent
is deprecated in favor of \donatj\UserAgent\parse_user_agent
Thus require "{$dir}/src/UserAgentParser.php";
remains a supported method of using the library.
1.*
The new 1.*
release does not break compatibility with 0.*
and nothing need to change to upgrade. However, the global parse_user_agent
is now deprecated; it has been replaced with the namespaced \donatj\UserAgent\parse_user_agent
and functions exactly the same. You can easily replace any existing call to parse_user_agent
with \donatj\UserAgent\parse_user_agent
In addition, 1.x adds a convenience object wrapper you may use should you prefer. More information on this is in the Usage section of the README.
I would also like to personally thank @mimmi20 for helping review ideas early in the project's life cycle.
Published by donatj over 4 years ago
Fixes:
Updates:
Published by donatj over 4 years ago
Drops support for Opera Next - it's not really a thing anymore and supporting it was interfering with proper detection of Opera propper.