itpathsolutions/authinfo
Composer 安装命令:
composer require itpathsolutions/authinfo
包简介
Auth information
关键字:
README 文档
README
The Authinfo package provides a powerful and lightweight solution for logging and monitoring user authentication activities within your Laravel application. It records successful login and logout attempts, capturing essential details such as user ID, username, IP address, user agent, login/logout time, device type, and location. This package is designed primarily for admin use, allowing administrators to track and audit user activity securely.
⚠️ Security Warning
This package does not include any built-in security measures and is intended for admin use only. It exposes sensitive login user details, which could pose a security risk if accessed by unauthorized users. Ensure that this package is only used in a secure environment and not exposed to public or unauthorized access.
🏷️ #Authentication #Security #UserTracking #Laravel #PHP #LoginMonitoring #SecurityAudit #ServerMonitoring #DevOps #AccessControl
Documentation
- Features
- Supported Versions
- Installation
- Accessing Login Logs
- FAQs
- Contributing
- Security Vulnerabilities
- License
- Testing
- Support
Features
- Tracks successful logins and logouts with essential details.
- Logs user ID, username, and IP address for each authentication event.
- Stores data in a dedicated
login_logsdatabase table. - Records user agent, login time, logout time, and device type.
- Captures user location (based on IP address lookup).
- Provides a built-in, responsive table UI for admin users.
- Includes pagination and search functionality for easy record browsing.
- Fully responsive design for both desktop and mobile views.
- Easy installation with vendor publish and migration commands.
- Supports Laravel 9, 10, and 11 with PHP 8+ compatibility.
- Allows filtering login records based on date range and user search.
- Lightweight and optimized for performance.
- Provides an audit trail for login/logout activity monitoring.
Supported Versions
- PHP: ^8.0
- Illuminate Support: ^9.0 | ^10.0 | ^11.0
Installation
To install the package, open the terminal and run the following command:
composer require itpathsolutions/authinfo
Commands
Vendor Publish
Run the following command to publish the package configuration and migration files:
php artisan vendor:publish --provider="Itpathsolutions\Authinfo\AuthInfoServiceProvider"
Migrate
Run the migration command to set up the necessary database tables:
php artisan migrate
Accessing Login Logs
Once installed, open the following URL in your browser to check the plugin:
localhost:8000/login-logs
This table provides a searchable, paginated view of login and logout records, including username, IP address, device type, location, and timestamps.
FAQs
1. What does this package do?
🚀 The Authinfo package logs and monitors user login/logout activities, capturing crucial details like user ID, IP address, device type, timestamps, and more. It provides admins with a clear audit trail of authentication events.
2. How do I install the package?
📦 Installing is simple! Run the following command in your terminal:
composer require itpathsolutions/authinfo
3. Which Laravel versions are supported?
This package supports Laravel 9, 10, and 11 with PHP 8+ compatibility.
4. Where are login logs stored?
📂 All login and logout events are stored in the login_logs table in your database.
5. How do I view login logs?
You can access login logs via:
👉 localhost:8000/login-logs
6. How do I update the package to the latest version?
Run the following command to update:
composer update itpathsolutions/authinfo
7. Can I contribute to this package?
🤝 Absolutely! Contributions are welcome. See the CONTRIBUTING guidelines for details.
8. Where can I get support?
For any support or queries, contact us via IT Path Solutions.
Contributing
We welcome contributions from the community! Feel free to Fork the repository and contribute to this module. You can also create a pull request, and we will merge your changes into the main branch. See CONTRIBUTING for details.
Security Vulnerabilities
Please review our Security Policy on how to report security vulnerabilities.
License
This package is open-source and available under the MIT License. See the LICENSE file for details.
Testing
To test this package, run the following command:
composer test
Get Support
- Feel free to contact us if you have any questions.
- If you find this project helpful, please give us a ⭐ Star.
You may also find our other useful package:
MySQL Info Package 🚀
PHP Info Package 🚀
Role Wise Session Manager Package 🚀
Chatbot Package 🚀
Redis Info Package 🚀
itpathsolutions/authinfo 适用场景与选型建议
itpathsolutions/authinfo 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 02 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Authentication」 「user-management」 「session-management」 「php-security」 「php-auth」 「user-authentication」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 itpathsolutions/authinfo 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 itpathsolutions/authinfo 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 itpathsolutions/authinfo 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Orchestra Platform Foundation
This package contains the session implementation to be able to iterate over it.
Automatically logs-in users if they are already authenticated by a remote source. (e.g. environment variable REMOTE_USER)
GraphQL authentication for your headless Craft CMS applications.
Symfony Simple User Bundle
A secure, modern user management system for PHP.
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-12