PHPackages                             vanguardapp/activity-log - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vanguardapp/activity-log

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vanguardapp/activity-log
========================

User activity log plugin for Vanguard.

v7.0.0(9mo ago)473.8k—10%4[2 issues](https://github.com/vanguardapp/activity-log/issues)[3 PRs](https://github.com/vanguardapp/activity-log/pulls)MITPHPPHP ^8.2

Since Sep 9Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/vanguardapp/activity-log)[ Packagist](https://packagist.org/packages/vanguardapp/activity-log)[ RSS](/packages/vanguardapp-activity-log/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (14)Used By (0)

User Activity Log plugin for [Vanguard - Advanced PHP Login and User Management](https://vanguardapp.io)system.

This plugin was originally part of the Vanguard itself, but it has been extracted as a separate plugin starting from Vanguard 4.

Installation
------------

[](#installation)

This plugin requires Vanguard `5.0.0` or greater.

### Installation via Composer

[](#installation-via-composer)

To install the plugin first you will need to pull it via composer by running the following command

```
composer require vanguardapp/activity-log

```

The composer will install the plugin for you as well as it's dependencies.

The next step is to register the plugin by adding the `\Vanguard\UserActivity\UserActivity::class`to the list of Vanguard plugins inside the `VanguardServiceProvider`:

```
protected function plugins()
    {
        return [
            //...
            \Vanguard\UserActivity\UserActivity::class,
        ];
    }
```

As soon as your plugin is registered, you should publish the plugins migrations by running the following command:

```
php artisan vendor:publish --provider="Vanguard\UserActivity\UserActivity"  --tag="migrations"

```

And, as the last step of the installation, you will need to run the following commands to make all the necessary database modifications:

```
php artisan migrate
php artisan db:seed --class="ActivityPermissionsSeeder"

```

At this point the plugin will be fully installed and ready to go. It is configured to listen for most of the events that are coming from Vanguard and to put the into the activity log.

### Manual Installation

[](#manual-installation)

If you plan to make the modifications to the plugin and customize it to fit your needs, it's much easier if you add it to your project manually.

To do so, you will need to download the ZIP archive from GitHub by clicking the green "Clone or download" button and then choosing the "Download ZIP" option from the dropdown.

Once you have the ZIP file on your computer, extract it to the `plugins/ActivityLog` folder (you will need to create this folder since it probably won't be present in your Vanguard installation).

Next step is to update your main `composer.json` file located in Vanguard's root directory and add the following object to the `repositories`array:

```
{
    "type": "path",
    "url": "./plugins/ActivityLog"
}

```

This will tell the composer that your plugin is located in `/plugins/ActivityLog`directory and that it should be installed from there.

Now, add the following to the composer's `require` section

```
"vanguardapp/activity-log": "*"

```

And run `composer update`.

Composer will now install the plugin from your local directory instead of pulling it from GitHub, which means that you will be able to make the changes to the plugin itself and customize it to fit your needs.

The rest of the process is the same as when the plugin is installed by directly fetching it via composer from the GitHub repository, so you will need to do all the same steps as above, which in short involves updating the `VanguardServiceProvider` and running the commands to publish plugin's static assets and to update the database.

Dashboard Widgets
-----------------

[](#dashboard-widgets)

A plugin provides user activity dashboard widget that is visible for all users with a role `User`.

To activate the widget add the `Vanguard\UserActivity\Widgets\ActivityWidget::class` to the widgets array in `VanguardServiceProvider`:

```
protected function widgets()
{
    return [
       //...
       \Vanguard\UserActivity\Widgets\ActivityWidget::class,
    ];
}
```

License
-------

[](#license)

This plugin is an open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance58

Moderate activity, may be stable

Popularity36

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

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

Every ~241 days

Recently: every ~221 days

Total

10

Last Release

271d ago

Major Versions

v2.0.0 → v3.0.02020-10-16

v3.1.0 → v4.0.02022-03-16

v4.0.0 → v5.0.02023-03-16

v5.0.1 → v6.0.02024-06-27

v6.1.0 → v7.0.02025-08-20

PHP version history (6 changes)v1.0.0PHP ^7.2

v2.0.0PHP ^7.2.5

v3.1.0PHP ^7.2|^8.0

v4.0.0PHP ^8.0.2|^8.1

v5.0.0PHP ^8.0.2|^8.1|^8.2

v7.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/eed1866378ff8c056f7bb570af2fc3bad5639df627d862dfecc648f86c5116ed?d=identicon)[loshmis](/maintainers/loshmis)

---

Top Contributors

[![loshmis](https://avatars.githubusercontent.com/u/6163000?v=4)](https://github.com/loshmis "loshmis (21 commits)")[![pajazi](https://avatars.githubusercontent.com/u/60793621?v=4)](https://github.com/pajazi "pajazi (5 commits)")[![hmoradian](https://avatars.githubusercontent.com/u/30568120?v=4)](https://github.com/hmoradian "hmoradian (1 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")

---

Tags

laravelactivity-logvanguarduser activity

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vanguardapp-activity-log/health.svg)

```
[![Health](https://phpackages.com/badges/vanguardapp-activity-log/health.svg)](https://phpackages.com/packages/vanguardapp-activity-log)
```

###  Alternatives

[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[yajra/laravel-datatables-editor

Laravel DataTables Editor plugin for Laravel 5.5+.

1186.1M2](/packages/yajra-laravel-datatables-editor)[statikbe/laravel-cookie-consent

Cookie consent modal for EU

213396.7k](/packages/statikbe-laravel-cookie-consent)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)

PHPackages © 2026

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