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

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

amgportalapp/activity-log
=========================

User activity log plugin for AMGPortal.

010PHP

Since Jan 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/louie0621/amgportalapp-activity-log)[ Packagist](https://packagist.org/packages/amgportalapp/activity-log)[ RSS](/packages/amgportalapp-activity-log/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

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

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

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

[](#installation)

This plugin requires AMGPortal `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 amgportalapp/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 `\AMGPortal\UserActivity\UserActivity::class`to the list of AMGPortal plugins inside the `AMGPortalServiceProvider`:

```
protected function plugins()
    {
        return [
            //...
            \AMGPortal\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="AMGPortal\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 AMGPortal 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 AMGPortal installation).

Next step is to update your main `composer.json` file located in AMGPortal'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

```
"amgportalapp/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 `AMGPortalServiceProvider` 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 `AMGPortal\UserActivity\Widgets\ActivityWidget::class` to the widgets array in `AMGPortalServiceProvider`:

```
protected function widgets()
{
    return [
       //...
       \AMGPortal\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

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0989b48ea8e916cf329eda61726cdfc4aac61ea1e900a5711ef3719e630808a5?d=identicon)[louie0621](/maintainers/louie0621)

---

Top Contributors

[![louie0621](https://avatars.githubusercontent.com/u/44018516?v=4)](https://github.com/louie0621 "louie0621 (5 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.4k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M274](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M338](/packages/open-telemetry-sdk)

PHPackages © 2026

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