2017 © Pedro Peláez
 

symfony-bundle useragentstring-bundle

Symfony2 bundle for integrating UserAgentString

image

andres-montanez/useragentstring-bundle

Symfony2 bundle for integrating UserAgentString

  • Thursday, April 7, 2016
  • by andres.montanez
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,768 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 8 Versions
  • 4 % Grown

The README.md

UserAgentString

Integrates User Agent String project into Symfony, (*1)

After enabling the bundle, you can access the user_agent service, (*2)

``` php <?php class HomeController extends Controller { public function indexAction() { $ua = $this->get('user_agent'); if ($ua->getCurrent()->isMobile()) { ... } else { ... } } }, (*3)


This bundle is inspired by the libraries here: http://user-agent-string.info/download, and uses the XML also from there, so keep your's updated! You can specify your updated version in the `config.yml` ``` yaml andres_montanez_user_agent_string: source: "%kernel.root_dir%/Resources/uas_20140211-01.xml" robots: true

By default, the Robots section of the file is NOT parsed nor used. If you want to know if a user agent is a bot, you have to enable it yourself. This bundle is focused on speed for the real users, not the bots., (*4)

The Versions

07/04 2016

dev-master

9999999-dev https://github.com/andres-montanez/UserAgentStringBundle

Symfony2 bundle for integrating UserAgentString

  Sources   Download

MIT

The Requires

 

user agent detection

07/04 2016

0.2.5

0.2.5.0 https://github.com/andres-montanez/UserAgentStringBundle

Symfony2 bundle for integrating UserAgentString

  Sources   Download

MIT

The Requires

 

user agent detection

04/04 2016

0.2.4

0.2.4.0 https://github.com/andres-montanez/UserAgentStringBundle

Symfony2 bundle for integrating UserAgentString

  Sources   Download

MIT

The Requires

 

user agent detection

12/02 2016

0.2.3

0.2.3.0 https://github.com/andres-montanez/UserAgentStringBundle

Symfony2 bundle for integrating UserAgentString

  Sources   Download

MIT

The Requires

 

user agent detection

19/01 2015

0.2.2

0.2.2.0 https://github.com/andres-montanez/UserAgentStringBundle

Symfony2 bundle for integrating UserAgentString

  Sources   Download

MIT

The Requires

 

user agent detection

12/06 2014

0.2.1

0.2.1.0 https://github.com/andres-montanez/UserAgentStringBundle

Symfony2 bundle for integrating UserAgentString

  Sources   Download

MIT

The Requires

 

user agent detection

16/02 2014

0.2.0

0.2.0.0 https://github.com/andres-montanez/UserAgentStringBundle

Symfony2 bundle for integrating UserAgentString

  Sources   Download

MIT

The Requires

 

user agent detection

16/02 2014

0.1

0.1.0.0 https://github.com/andres-montanez/UserAgentStringBundle

Symfony2 bundle for integrating UserAgentString

  Sources   Download

MIT

The Requires

 

user agent detection