itpathsolutions/authinfo 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  • 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_logs database 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 itpathsolutions/authinfo 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 17
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-02-12