2017 © Pedro Peláez
 

symfony-bundle php-user-agent-bundle

Wrapper for global function in https://github.com/donatj/PhpUserAgent/

image

exs/php-user-agent-bundle

Wrapper for global function in https://github.com/donatj/PhpUserAgent/

  • Friday, September 16, 2016
  • by rumpranger
  • Repository
  • 7 Watchers
  • 0 Stars
  • 398 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 8 % Grown

The README.md

EXS-PhpUserAgentBundle

Wrapper for global function in https://github.com/donatj/PhpUserAgent/, (*1)

Installing the # EXS-PhpUserAgentBundle in a new Symfony2 project

Edit composer.json file with # EXS-PhpUserAgentBundle dependency: ``` js //composer.json //... "require": { //other bundles "exs/php-user-agent-bundle": "^1.0" },, (*2)

Save the file and have composer update the project via the command line:
``` shell
composer update exs/php-user-agent-bundle"

Update the app/AppKernel.php ``` php //app/AppKernel.php //... public function registerBundles() { $bundles = array( //Other bundles new EXS\PhpUserAgentBundle\EXSPhpUserAgentBundle(), );, (*3)


## Usage ``` php // initiate the service $service = new EXS\PhpUserAgentBundle\Services\PhpUserAgentService(); $service->parseUserAgent(USER_AGENT_STRING_HERE); // Get the detected platform type $service->getFlatform(); // Get the detected browser type $service->getBrowser(); // Get the detected browser version $service->getVersion();

Contributing

Anyone and everyone is welcome to contribute., (*4)

If you have any questions or suggestions please [let us know][1]., (*5)

The Versions

16/09 2016

dev-master

9999999-dev https://github.com/ExSituMarketing/EXS-PhpUserAgentBundle

Wrapper for global function in https://github.com/donatj/PhpUserAgent/

  Sources   Download

MIT

The Requires

 

by Charles Weiss

parser php bundle symfony browser user agent useragent browser detection

16/09 2016

v1.0.0

1.0.0.0 https://github.com/ExSituMarketing/EXS-PhpUserAgentBundle

Wrapper for global function in https://github.com/donatj/PhpUserAgent/

  Sources   Download

MIT

The Requires

 

by Charles Weiss

parser php bundle symfony browser user agent useragent browser detection