2017 © Pedro Peláez
 

library nette-user-agent

User agent extension for Nette Framework

image

geniv/nette-user-agent

User agent extension for Nette Framework

  • Saturday, May 26, 2018
  • by geniv
  • Repository
  • 1 Watchers
  • 0 Stars
  • 99 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 9800 % Grown

The README.md

User agent

via: http://www.useragentstring.com/, (*1)

Installation

$ composer require geniv/nette-user-agent

or, (*2)

"geniv/nette-user-agent": ">=1.0.0"

require:, (*3)

"php": ">=7.0.0",
"nette/nette": ">=2.4.0"

Include in application

neon configure extension:, (*4)

extensions:
    - UserAgent\Bridges\Nette\Extension

usage UserAgent:, (*5)

UserAgent::isFirefox()
UserAgent::isChrome()
UserAgent::isSafari()
UserAgent::isOpera()
UserAgent::isIExplorer()
UserAgent::isAndroid()
UserAgent::isLinux()
UserAgent::isMac()
UserAgent::isWindows()
UserAgent::isWebKit()
UserAgent::isGecko()

usage UserAgentString:, (*6)

UserAgentString::getData()
UserAgentString::isLinux()
UserAgentString::isMac()
UserAgentString::isWindows()
UserAgentString::isChrome()
UserAgentString::isSafari()
UserAgentString::isFirefox()
UserAgentString::isOpera()
UserAgentString::isAndroid()
UserAgentString::isIExplorer()
UserAgentString::isBrowser(['Chrome', 'Firefox', 'Internet Explorer'], agent)
UserAgentString::isOs(['Linux', 'Windows', 'Macintosh'], agent)
UserAgentString::getOs()
UserAgentString::getBrowser()
UserAgentString::isWebKit()
UserAgentString::isGecko()

note: in offline mode use UserAgent, in development mode use static variable, in production mode use nette cache, (*7)

The Versions

26/05 2018

dev-develop

dev-develop

User agent extension for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

user nette agent geniv

24/05 2018

dev-master

9999999-dev

User agent extension for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

user nette agent geniv

24/05 2018

v1.0.0

1.0.0.0

User agent extension for Nette Framework

  Sources   Download

MIT

The Requires

 

by Radek Frystak

user nette agent geniv