PHPackages                             mvpasarel/activity-log-saas - 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. mvpasarel/activity-log-saas

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

mvpasarel/activity-log-saas
===========================

A clean and simple Laravel 4 activity logger for monitoring user activity on a SaaS application.

5832PHP

Since Nov 11Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

ActivityLog
===========

[](#activitylog)

**A clean and simple Laravel 4 activity logger for monitoring user activity on a website or web application adapted for multi tenacity.**

- [Installation](#installation)
- [Basic Usage](#basic-usage)

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

[](#installation)

**Basic installation, service provider registration, and aliasing:**

To install ActivityLog, make sure "mvpasarel/activity-log-saas" has been added to Laravel 4's `composer.json` file.

```
"require": {
	"mvpasarel/activity-log-saas": "dev-master"
},

```

Then run `php composer.phar update` from the command line. Composer will install the ActivityLog package. Now, all you have to do is register the service provider, set up ActivityLog's alias in `app/config/app.php`, Add this to the `providers` array:

```
'Mvpasarel\ActivityLogSaaS\ActivityLogSaaSServiceProvider',

```

And add this to the `aliases` array:

```
'Activity' => 'Mvpasarel\ActivityLogSaaS\Activity',

```

**Run the migrations and seed the database:**

To run the database migrations (a single DB table), run the following from the command line:

```
php artisan migrate --package=mvpasarel/activity-log-saas

```

**Publishing config file:**

If you wish to customize the configuration of ActivityLog, you will need to publish the config file. Run this from the command line:

```
php artisan config:publish mvpasarel/activity-log-saas

```

You will now be able to edit the config file in `app/config/packages/mvpasarel/activity-log-saas`.

Basic Usage
-----------

[](#basic-usage)

**Logging user activity:**

```
Activity::log([
	'userID' => Sentry::getUser()->id,
	'contentID' => $userId,
	'contentType' => 'User',
	'action' => UserObserver::ACTION_LOGGEDIN,
	'description' => UserObserver::ACTION_LOGGEDIN,
	'details' => '',
	'updated' => true,
]);

```

The above code will log an activity for the currently logged in user. The IP address will automatically be saved as well and the "developer" flag will be set if the user has a "developer" session variable set to true. This can be used to differentiate activities between the developer and the website administrator.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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/f8d782aae092162a040ca0ed8cf937ec7df73f48ccbc77418617c44556032716?d=identicon)[mvpasarel](/maintainers/mvpasarel)

---

Top Contributors

[![Regulus343](https://avatars.githubusercontent.com/u/967717?v=4)](https://github.com/Regulus343 "Regulus343 (8 commits)")[![woazala](https://avatars.githubusercontent.com/u/9365161?v=4)](https://github.com/woazala "woazala (6 commits)")[![mvpasarel](https://avatars.githubusercontent.com/u/642453?v=4)](https://github.com/mvpasarel "mvpasarel (2 commits)")[![thujohn](https://avatars.githubusercontent.com/u/580699?v=4)](https://github.com/thujohn "thujohn (1 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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