PHPackages                             abhimanyu/hive - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. abhimanyu/hive

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

abhimanyu/hive
==============

Hive is a lightweight yet powerful Laravel package designed to track and log user activities across your application. Whether it's page views, logins, form submissions, or custom events, Hive provides real-time insights into user behavior, helping you enhance analytics, improve debugging, and ensure security auditing.With an intuitive dashboard, exportable logs, and actionable analytics, Hive empowers developers to make informed decisions while adhering to global privacy standards.

v1.0.0(1y ago)03MITPHPPHP ^8.0

Since Dec 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/developedbyabhi/hive)[ Packagist](https://packagist.org/packages/abhimanyu/hive)[ RSS](/packages/abhimanyu-hive/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

Laravel User Activity Package Installation Guide
================================================

[](#laravel-user-activity-package-installation-guide)

This document provides detailed steps for installing and configuring the Laravel User Activity package, along with guidelines for setting up the package repository for Git.

---

1. Installation
---------------

[](#1-installation)

### Step 1: Install via Composer

[](#step-1-install-via-composer)

Run the following command to install the package via Composer:

```
composer require abhimanyu/hive
```

---

2. Configuration
----------------

[](#2-configuration)

### Step 2.1: Publish Configuration File

[](#step-21-publish-configuration-file)

Run the following command to publish the package's configuration file:

```
php artisan vendor:publish --tag=config --provider="Abhimanyu\Hive\UserActivityServiceProvider"
```

This will create a file `config/user_activity.php`. Customize the configuration according to your requirements.

---

### Step 2.2: Publish Migrations

[](#step-22-publish-migrations)

Publish the database migration files using the command:

```
php artisan vendor:publish --tag=migrations --provider="Abhimanyu\Hive\UserActivityServiceProvider"
```

Run the migrations to create the necessary database table:

```
php artisan migrate
```

---

### Step 2.3: Add Middleware

[](#step-23-add-middleware)

To enable activity tracking globally, register the middleware in `app/Http/Kernel.php`:

```
protected $middlewareGroups = [
    'web' => [
        \Abhimanyu\Hive\Middleware\TrackUserActivity::class,
    ],
];
```

---

### Step 2.4: Load Routes (Optional)

[](#step-24-load-routes-optional)

The package automatically loads its routes. To customize them, include the routes manually in your `routes/web.php`:

```
require base_path('vendor/abhimanyu/hive/src/routes/web.php');
```

---

3. Usage
--------

[](#3-usage)

### Log User Activity

[](#log-user-activity)

You can log custom user activities using the `ActivityLogger` service:

```
use Abhimanyu\Hive\Services\ActivityLogger;

ActivityLogger::log(auth()->user(), 'Exported activity logs');
```

---

4. Publishing Assets
--------------------

[](#4-publishing-assets)

To publish the views for customization, run:

```
php artisan vendor:publish --tag=views --provider="Abhimanyu\Hive\UserActivityServiceProvider"
```

---

5. Git Repository Setup
-----------------------

[](#5-git-repository-setup)

### Step 5.1: Initialize Git Repository

[](#step-51-initialize-git-repository)

Initialize the Git repository in the package directory:

```
git init
```

### Step 5.2: Create `.gitignore`

[](#step-52-create-gitignore)

Add a `.gitignore` file in the root directory with the following content:

```
/vendor
/node_modules
/.env
/.idea
/.vscode
/public/storage
/storage/*.key

```

### Step 5.3: Add All Files

[](#step-53-add-all-files)

Stage all files for the initial commit:

```
git add .
```

### Step 5.4: Commit Changes

[](#step-54-commit-changes)

Create an initial commit:

```
git commit -m "Initial commit of Laravel User Activity package"
```

### Step 5.5: Add Remote Repository

[](#step-55-add-remote-repository)

Add your Git remote repository:

```
git remote add origin
```

### Step 5.6: Push Code

[](#step-56-push-code)

Push your code to the remote repository:

```
git push -u origin main
```

---

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance40

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

505d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cc55554f67ad94fe9e4cb454f350516597c4d04f434c6a0e7e0da20b715a58d?d=identicon)[developedbyabhi](/maintainers/developedbyabhi)

---

Top Contributors

[![developedbyabhi](https://avatars.githubusercontent.com/u/192488240?v=4)](https://github.com/developedbyabhi "developedbyabhi (8 commits)")

---

Tags

laravelmonitoringdebugging

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/abhimanyu-hive/health.svg)

```
[![Health](https://phpackages.com/badges/abhimanyu-hive/health.svg)](https://phpackages.com/packages/abhimanyu-hive)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[binarybuilds/laravel-mail-manager

A Laravel mail manager to record and re-send all outgoing emails.

2440.2k1](/packages/binarybuilds-laravel-mail-manager)[lucianotonet/laravel-telescope-mcp

MCP Server extension for Laravel Telescope

198.6k](/packages/lucianotonet-laravel-telescope-mcp)

PHPackages © 2026

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