承接 laravel-visitor-analytics/laravel-visitor-analytics 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

laravel-visitor-analytics/laravel-visitor-analytics

最新稳定版本:1.0.0

Composer 安装命令:

composer require laravel-visitor-analytics/laravel-visitor-analytics

包简介

README 文档

README

A lightweight, self-hosted, and privacy-focused visitor tracking package for Laravel applications. Monitor your website traffic without relying on heavy third-party services like Google Analytics.

🚀 Key Features

Unique Visit Tracking: Uses a smart caching mechanism to prevent duplicate hits from page refreshes (Unique IPs per 24h).

Minimalistic Dashboard: Built-in analytics overview with Chart.js integration.

Performance Optimized: Designed to be non-intrusive and fast, ensuring your site speed remains unaffected.

Data Rich: Tracks URLs, IP addresses, User-Agents, and authenticated User IDs.

Plug & Play: Easy integration via Laravel Middleware.

🛠 Installation

You can install the package via composer (assuming it is hosted on GitHub or local path):

composer require laravel-visitor-analytics/laravel-visitor-analytics

Bash

Run the migrations to create the visits table:

Bash php artisan migrate

📖 Usage

1. Register the Middleware

The easiest way to track visits is to apply the 'track.visits' middleware to your routes in routes/web.php:

Route::middleware(['track.visits'])->group(function () { Route::get('/example', [ExampleController::class, 'index']); });

2. Access the Dashboard

By default, you can view your stats at: your-domain.com/admin/analytics

📊 Analytics Dashboard

The dashboard provides:

Daily Traffic Trends: Visualized via a smooth line chart.

Top Pages: Discover which URLs are performing best.

Key Metrics: Total visits vs. Unique visitors.

🔒 Privacy & Security

This package stores data locally on your server. No data is shared with third parties, making it a great choice for GDPR compliance.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-02-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固