diego-ninja/laravel-devices

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

v1.2.2 2024-11-12 18:29 UTC

README

Latest Version on Packagist Total Downloads PHP Version Static Badge License: MIT GitHub last commit Hits-of-Code wakatime

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.

❤️ 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 and ClientJS integrations for device fingerprinting

🗓️ Planned features

📚 Documentation

Please refer to the documentation for more information on the features and how to use this package.

🙏 Credits

This project is developed and maintained by 🥷 Diego Rin in his free time.

Special thanks to:

  • Laravel Framework for providing the most exciting and well-crafted PHP framework.
  • Hamed Mehryar for developing the inital code 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!