PHPackages                             husseinsayed/identify - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. husseinsayed/identify

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

husseinsayed/identify
=====================

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

0291PHP

Since Jan 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/husseinsayed/identify)[ Packagist](https://packagist.org/packages/husseinsayed/identify)[ RSS](/packages/husseinsayed-identify/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (1)

Identify
========

[](#identify)

> Laravel 5 Package to identify a User's Browser, Operating System, Language and Device, forked from husseinsayed/laravel-identify

**NOTE: Works on the latest laravel version**

Installation
------------

[](#installation)

[PHP](https://php.net) 5.4+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.

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

```
composer require husseinsayed/identify

```

You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.

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.

- `HusseinSayed\Identify\IdentifyServiceProvider::class`

Also, register the Facade like so:

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

Configuration
-------------

[](#configuration)

To get started, you'll need to publish all vendor assets:

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

Browser Detection
-----------------

[](#browser-detection)

The browser method allows you to detect a user's browser and version.

### Browsers Detected

[](#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

[](#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
------------

[](#os-detection)

The os method allows you to detect a user's operating system and version.

### OS Detected

[](#os-detected)

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

### Usage

[](#usage-1)

```
/**
 * 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
----------------

[](#device-detection)

The device method allows you to detect a user's device.

### Device Detected

[](#device-detected)

- iPad
- iPhone
- Windows Phone

### Usage

[](#usage-2)

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

Language Detection
------------------

[](#language-detection)

The language method allows you to detect a user's language.

### Usage

[](#usage-3)

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

Contributing
------------

[](#contributing)

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.

How can I thank you?
--------------------

[](#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!

Don't forget to [follow me on twitter](https://twitter.com/husseinsayed)!

Thanks! Prosper Otemuyiwa.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/14f6034a04568b339e935d82b1f71ab0666d819f591a3c0302c74cb1f09d6629?d=identicon)[husseinsayed](/maintainers/husseinsayed)

---

Top Contributors

[![husseinsayed](https://avatars.githubusercontent.com/u/33466971?v=4)](https://github.com/husseinsayed "husseinsayed (1 commits)")

### Embed Badge

![Health badge](/badges/husseinsayed-identify/health.svg)

```
[![Health](https://phpackages.com/badges/husseinsayed-identify/health.svg)](https://phpackages.com/packages/husseinsayed-identify)
```

###  Alternatives

[codercat/jwk-to-pem

Convert JWK to PEM format.

1024.9M28](/packages/codercat-jwk-to-pem)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
