2017 © Pedro Peláez
 

package detect-user-agent

Detects which user agent is being used by the current browser

image

sempro/detect-user-agent

Detects which user agent is being used by the current browser

  • Monday, August 28, 2017
  • by sempro
  • Repository
  • 5 Watchers
  • 0 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

Detect User Agent

Packagist Packagist PRs Welcome, (*1)

Detects what user agent the browser is using., (*2)

Installation

You can install the package via composer:, (*3)

composer require sempro/detect-user-agent

If you are using a version below 5.5 of laravel, then you will also have to add the service provider to the app.php config file., (*4)

...
Sempro\DetectUserAgent\Providers\DetectUserAgentServiceProvider::class,
...

Usage

use Sempro\DetectUserAgent\Contracts\DetectUserAgent;

...

public function index(DetectUserAgent $userAgent)
{
    return $userAgent->isMobile();
}

See source file for an overview of what methods are available., (*5)

Credits

License

The MIT License (MIT). Please see License File for more information., (*6)

The Versions

28/08 2017

dev-master

9999999-dev

Detects which user agent is being used by the current browser

  Sources   Download

MIT

The Requires

 

by Sempro AS
by Runar Jørgensen

28/08 2017

1.0

1.0.0.0

Detects which user agent is being used by the current browser

  Sources   Download

MIT

The Requires

 

by Sempro AS
by Runar Jørgensen