2017 © Pedro Peláez
 

library identify

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

image

consoletvs/identify

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

  • Tuesday, August 1, 2017
  • by ErikCampobadal
  • Repository
  • 1 Watchers
  • 16 Stars
  • 10,466 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 12 Versions
  • 20 % Grown

The README.md

Identify

Laravel 5 Package to identify a User's Browser, Operating System, Language and Device, forked from unicodeveloper/laravel-identify, (*1)

NOTE: Works on the latest laravel version, (*2)

Installation

PHP 5.4+ or HHVM 3.3+, and Composer are required., (*3)

To get the latest version of Laravel Identify, simply add the following line to the require block of your composer.json file., (*4)

composer require consoletvs/identify

You'll then need to run composer install or composer update to download it and have the autoloader updated., (*5)

Once Laravel Identify is installed, you need to register the service provider. Open up config/app.php and add the following to the providers key., (*6)

  • Unicodeveloper\Identify\IdentifyServiceProvider::class

Also, register the Facade like so:, (*7)

'aliases' => [
    ...
    'Identify' => Unicodeveloper\Identify\Facades\IdentityFacade::class,
    ...
]

Configuration

To get started, you'll need to publish all vendor assets:, (*8)

$ php artisan vendor:publish --provider="Unicodeveloper\Identify\IdentifyServiceProvider"

Browser Detection

The browser method allows you to detect a user's browser and version., (*9)

Browsers Detected

  • Vivaldi
  • Opera
  • Opera Mini
  • WebTV
  • Internet Explorer
  • Pocket Internet Explorer
  • Microsoft Edge
  • Konqueror
  • iCab
  • OmniWeb
  • Firebird
  • Firefox
  • Iceweasel
  • Shiretoko
  • Mozilla
  • Amaya
  • Lynx
  • Safari
  • Chrome
  • Navigator
  • GoogleBot
  • Yahoo! Slurp
  • W3C Validator
  • BlackBerry
  • IceCat
  • Nokia S60 OSS Browser
  • Nokia Browser
  • MSN Browser
  • MSN Bot
  • Netscape Navigator
  • Galeon
  • NetPositive
  • Phoenix
  • SeaMonkey
  • Yandex Browser

Usage

/**
 * Gets the version of the user's browser
 * @return string
 */
Identify::browser()->getVersion()

/**
 * Gets the name of the user's browser
 * @return string
 */
Identify::browser()->getName()

OS Detection

The os method allows you to detect a user's operating system and version., (*10)

OS Detected

  • Windows
  • Windows Phone
  • OS X
  • iOS
  • Android
  • Chrome OS
  • Linux
  • SymbOS
  • Nokia
  • BlackBerry
  • FreeBSD
  • OpenBSD
  • NetBSD
  • OpenSolaris
  • SunOS
  • OS2
  • BeOS

Usage

/**
 * Gets the version of the user's Operating System
 * @return string
 */
Identify::os()->getVersion()

/**
 * Gets the name of the user's Operating System
 * @return string
 */
Identify::os()->getName()

Device Detection

The device method allows you to detect a user's device., (*11)

Device Detected

  • iPad
  • iPhone
  • Windows Phone

Usage

/**
 * Gets the name of the user's device
 * @return string
 */
Identify::device()->getName()

Language Detection

The language method allows you to detect a user's language., (*12)

Usage

/**
 * Gets the language that the user's browser contents are displayed in
 * @return string
 */
Identify::lang()->getLanguage()

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities., (*13)

How can I thank you?

Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!, (*14)

Don't forget to follow me on twitter!, (*15)

Thanks! Prosper Otemuyiwa., (*16)

License

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

The Versions

01/08 2017

dev-master

9999999-dev

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

  Sources   Download

MIT

The Requires

 

laravel language github browser detect open source operating system identify evangelist

24/04 2017

1.3.0

1.3.0.0

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

  Sources   Download

MIT

The Requires

 

laravel language github browser detect open source operating system identify evangelist

03/04 2017

1.2.1

1.2.1.0

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

  Sources   Download

MIT

The Requires

 

laravel language github browser detect open source operating system identify evangelist

10/02 2017

1.2

1.2.0.0

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

  Sources   Download

MIT

The Requires

 

laravel language github browser detect open source operating system identify evangelist

07/12 2016

1.1.4

1.1.4.0

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel language github browser detect open source operating system identify evangelist

07/12 2016

1.1.3

1.1.3.0

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel language github browser detect open source operating system identify evangelist

09/11 2016

dev-analysis-8mrQnV

dev-analysis-8mrQnV

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel language github browser detect open source operating system identify evangelist

31/10 2016

1.1.2

1.1.2.0

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel language github browser detect open source operating system identify evangelist

19/01 2016

1.0.x-dev

1.0.9999999.9999999-dev

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

  Sources   Download

MIT

The Requires

 

laravel language github browser detect open source operating system identify evangelist

19/01 2016

1.1.1

1.1.1.0

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

  Sources   Download

MIT

The Requires

 

laravel language github browser detect open source operating system identify evangelist

19/01 2016

1.1.0

1.1.0.0

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

  Sources   Download

MIT

The Requires

 

laravel language github browser detect open source operating system identify evangelist

19/01 2016

1.0.0

1.0.0.0

A Laravel 5 Package Provider to Identify/detect a user's browser, device, operating system and Language

  Sources   Download

MIT

The Requires

 

laravel language github browser detect open source operating system identify evangelist