PHPackages                             diego-ninja/laravel-devices - 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. diego-ninja/laravel-devices

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

diego-ninja/laravel-devices
===========================

This package provides session tracking functionalities, multi-session management and user device management features for laravel applications.

v2.0.6(5mo ago)763.1k6[1 issues](https://github.com/diego-ninja/laravel-devices/issues)[1 PRs](https://github.com/diego-ninja/laravel-devices/pulls)2MITPHPPHP ^8.2CI passing

Since Sep 27Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/diego-ninja/laravel-devices)[ Packagist](https://packagist.org/packages/diego-ninja/laravel-devices)[ Fund](https://paypal.me/diegorin)[ Fund](https://ko-fi.com/diegoninja)[ RSS](/packages/diego-ninja-laravel-devices/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (19)Versions (41)Used By (2)

 [![Laravel Devices Logo](./.github/assets/logo.png)](./.github/assets/logo.png)

[![Laravel Package](https://camo.githubusercontent.com/f94fe3aaef3758ac62af14bc3038eb3ba2b92bfc3cac07b34fb131989f1f81ef/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c25323031302b2532305061636b6167652d7265643f6c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)](https://www.laravel.com)[![Latest Version on Packagist](https://camo.githubusercontent.com/c65e3873e6287c2e3ebce2619414e8149e7668761c12a594e995cec761125fe2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646965676f2d6e696e6a612f6c61726176656c2d646576696365732e7376673f7374796c653d666c617426636f6c6f723d626c7565)](https://packagist.org/packages/diego-ninja/laravel-devices)[![Total Downloads](https://camo.githubusercontent.com/b28bfc0acc2fee01ae6aced7a72d3528f41825c85f08d2dea292eb45d1774d16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646965676f2d6e696e6a612f6c61726176656c2d646576696365732e7376673f7374796c653d666c617426636f6c6f723d626c7565)](https://packagist.org/packages/diego-ninja/laravel-devices)[![PHP Version](https://camo.githubusercontent.com/9db78987a7d05d3147802071748b905429ca68f2bc9f41f69da247b24c722d86/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646965676f2d6e696e6a612f636f736d69632e7376673f7374796c653d666c617426636f6c6f723d626c7565)](https://camo.githubusercontent.com/9db78987a7d05d3147802071748b905429ca68f2bc9f41f69da247b24c722d86/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f646965676f2d6e696e6a612f636f736d69632e7376673f7374796c653d666c617426636f6c6f723d626c7565)[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)[![GitHub last commit](https://camo.githubusercontent.com/d59cffc99cb06bc5bfa9f881c72f382cda4da8fc84463ea58790e38c023d9136/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f646965676f2d6e696e6a612f6c61726176656c2d646576696365733f636f6c6f723d626c7565)](https://camo.githubusercontent.com/d59cffc99cb06bc5bfa9f881c72f382cda4da8fc84463ea58790e38c023d9136/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f646965676f2d6e696e6a612f6c61726176656c2d646576696365733f636f6c6f723d626c7565)[![Hits-of-Code](https://camo.githubusercontent.com/c0512cec65c074e934c3f829b0656e49c6da137b87608e1180fedff687be4212/68747470733a2f2f686974736f66636f64652e636f6d2f6769746875622f646965676f2d6e696e6a612f6c61726176656c2d646576696365733f6272616e63683d6d61696e266c6162656c3d486974732d6f662d436f6465)](https://hitsofcode.com/github/diego-ninja/laravel-devices/view?branch=main&label=Hits-of-Code&color=blue)[![wakatime](https://camo.githubusercontent.com/f0b9070ff396d1e60366d1a5559476d4c7e48548a89ab4af170e12353ee9c4cf/68747470733a2f2f77616b6174696d652e636f6d2f62616467652f757365722f62643635663035352d633966332d346637332d393261612d3363393831306637306363332f70726f6a6563742f39343439316266662d366236632d346239642d613566642d3535363833313964333037312e737667)](https://wakatime.com/badge/user/bd65f055-c9f3-4f73-92aa-3c9810f70cc3/project/94491bff-6b6c-4b9d-a5fd-5568319d3071)

Laravel Devices is a comprehensive package for managing user devices and sessions in Laravel applications. It provides robust device tracking, session management, and security features including device fingerprinting and two-factor authentication support.

This is a work in progress, and maybe or maybe not be ready for production use. Help is needed to improve the project and write documentation so if you are interested in contributing, please read the [contributing guide](./docs/contributing.md).

❤️ Features
-----------

[](#️-features)

- Authenticated User Devices
- Session Management
    - Session blocking
    - Session locking (Google 2FA support for session locking)
    - Session location tracking
- Device verifying
- Custom id format for sessions and devices
- Application events
- Ready to use middleware, routes, controllers, dtos, value objects and resources
- Ready to use Google 2FA integration
- Cache support for devices, sessions, locations and user agents
- [FingerprintJS](https://github.com/fingerprintjs/fingerprintjs), [ClientJS](https://github.com/jackspirou/clientjs) and [ThumbmarkJS](https://www.thumbmarkjs.com/) integrations for device fingerprinting

🗓️ Planned features
-------------------

[](#️-planned-features)

- Device hijacking detection
- Livewire integrations for [Laravel Jetstream](https://jetstream.laravel.com/) and [Laravel Breeze](https://laravel.com/docs/11.x/starter-kits#laravel-breeze)
- [Laravel Pulse](https://laravel.com/docs/11.x/pulse) integration

📚 Documentation
---------------

[](#-documentation)

Please refer to the [documentation](./docs/README.md) for more information on the features and how to use this package.

🙏 Credits
---------

[](#-credits)

This project is developed and maintained by 🥷 [Diego Rin](https://diego.ninja) and [Davide Pizzato](https://github.com/dvdpzzt-kimia) in their free time.

Special thanks to:

- [Laravel Framework](https://laravel.com/) for providing the most exciting and well-crafted PHP framework.
- [Hamed Mehryar](https://github.com/hamedmehryar) for developing the [inital code](https://github.com/hamedmehryar/laravel-session-tracker) that serves Laravel Devices as starting point.
- All the contributors and testers who have helped to improve this project through their contributions.

If you find this project useful, please consider giving it a ⭐ on GitHub!

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance81

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 72.2% 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.

###  Release Activity

Cadence

Every ~13 days

Recently: every ~4 days

Total

34

Last Release

171d ago

Major Versions

v1.2.21 → v2.0.02025-10-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/dff5b0a76de3d555cb236c400384058ba23982bce2e859cc1b2f0c1f0161a3e6?d=identicon)[diego.ninja](/maintainers/diego.ninja)

---

Top Contributors

[![diego-ninja](https://avatars.githubusercontent.com/u/78662279?v=4)](https://github.com/diego-ninja "diego-ninja (260 commits)")[![dvdpzzt-kimia](https://avatars.githubusercontent.com/u/175600993?v=4)](https://github.com/dvdpzzt-kimia "dvdpzzt-kimia (89 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![eviera22](https://avatars.githubusercontent.com/u/28775993?v=4)](https://github.com/eviera22 "eviera22 (2 commits)")[![codeingboss](https://avatars.githubusercontent.com/u/37710297?v=4)](https://github.com/codeingboss "codeingboss (1 commits)")[![CLCWebsiteServices](https://avatars.githubusercontent.com/u/61421256?v=4)](https://github.com/CLCWebsiteServices "CLCWebsiteServices (1 commits)")

---

Tags

devicelaravelsession-managementtracking

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/diego-ninja-laravel-devices/health.svg)

```
[![Health](https://phpackages.com/badges/diego-ninja-laravel-devices/health.svg)](https://phpackages.com/packages/diego-ninja-laravel-devices)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[laravel/nightwatch

The official Laravel Nightwatch package.

3526.1M13](/packages/laravel-nightwatch)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)

PHPackages © 2026

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