ikimea / browser Goto Github PK
View Code? Open in Web Editor NEWDetecting the user’s browser type and version
License: MIT License
Detecting the user’s browser type and version
License: MIT License
When clicking on a shared link on facebook from iphone 6, this package is returning true for:
if( Browser::BROWSER_IE && $browser->getVersion() < 9 ) {
}
user agent is
Mozilla/5.0 (iPhone; CPU iPhone OS 8_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12D508 [FBAN/FBIOS;FBAV/26.0.0.11.13;FBBV/7806348;FBDV/iPhone7,2;FBMD/iPhone;FBSN/iPhone OS;FBSV/8.2;FBSS/2; FBCR/O2;FBID/phone;FBLC/en_GB;FBOP/5]
Hello, why do you use this variable : $_os ?
you init she and, you set she to "unknow", with the function "reset", but that's all
When i use Chrome on my iPhone or iPad device (Tested using Browserstack). The getBrowser() returns "iPhone" but the getVersion() returns "unknown". I have to specify to following in order to pass the evaluation.
\Ikimea\Browser\Browser::BROWSER_IPHONE => 'unknown'
\Ikimea\Browser\Browser::BROWSER_IPAD => 'unknown'
Is this a known issue?
Notice: Undefined offset: 1 .../vendor/ikimea/browser/lib/Ikimea/Browser/Browser.php 660
User agent: Dalvik/2.1.0 (Linux; U; Android 8.0.0; ONEPLUS A3010 Build/OPR6.170623.013)
Line 660: $aversion = explode(' ', $aresult[1]);
It seems that some user agents don't have space right after OPR than the notice is logged
It will make easy to use conditions like < 40
, currently chrome versions are more something like "42.0.123.4"
Currently everything is displayed in Packagist with dev-master
but doing so doesn't allow the package to be installed with a minimum stability of stable, only dev. To fix this, create a version tag so that Browser can be installed in stable Composer installs.
Hi, it would be nice to add Ubuntu in the list of OPERATING_SYSTEM.
Currently my user agent string is:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0
Thanks
The following user agent is not correctly parsed as Internet Explorer 11:
"Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko"
See also MSDN: https://msdn.microsoft.com/en-us/library/hh869301(v=vs.85).aspx
Hi,
sounds like an update of actual BackBee CMS project class (https://github.com/backbee/BackBee/blob/master/Util/Browser.php).
Would you mind to put a note on this ? It's OK to reuse code, but MIT licence say you have to mention original author.
Regards,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.