PHPackages                             jorenvanhocht/tracert - 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. jorenvanhocht/tracert

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

jorenvanhocht/tracert
=====================

Laravel package to log the users actions in the database

v2.0.1(9y ago)104.0k21MITPHP

Since May 12Pushed 9y ago2 watchersCompare

[ Source](https://github.com/jorenvh/Tracert)[ Packagist](https://packagist.org/packages/jorenvanhocht/tracert)[ RSS](/packages/jorenvanhocht-tracert/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (13)Used By (1)

Tracert
=======

[](#tracert)

Tracert is a package for Laravel to log actions of your users to your database.

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

[](#installation)

### Composer

[](#composer)

You can require this package through composer, just run the following line in your terminal.

```
composer require jorenvanhocht/tracert 1.3-beta
```

### Service Provider

[](#service-provider)

Add the following line to the providers array in config/app.php

```
'jorenvanhocht\Tracert\TracertServiceProvider',
```

If you want you can also add the facade to the aliases array in config/app.php

> **Note**: this is not required, you can make use of available helper method wich is faster.

```
'Tracert'   => 'jorenvanhocht\Blogify\Facades\Tracert',
```

### Composer update

[](#composer-update)

To be sure everything is loaded properly run `composer update` from your terminal.

### Publish config file

[](#publish-config-file)

If you want you can publish the config file by running the following command from your terminal

```
php artisan vendor:publish --tag="config"
```

### Migrations

[](#migrations)

This package contains a migration file to create the table where all actions will be logged into. Run it by the following command:

```
php artisan migrate --path="vendor/jorenvanhocht/Tracert/database/Migrations"
```

Configuration
-------------

[](#configuration)

When you have published the config file you can change the name of the database table where all actions will be logged into.

The config file is located at config/Tracert.php.

Usage
-----

[](#usage)

### Log an action

[](#log-an-action)

```
tracert()->log('Model', 'row', 'user_id', 'Action');
```

### Retrieve actions for your activity feed

[](#retrieve-actions-for-your-activity-feed)

This package contains a model so you can just retrieve data like you would always do using Eloquent.

```
use jorenvanhocht\Tracert\Models\History;

History::all();
History::whereUserId(1);
History::whereTable('table_name');

...
```

Issues
------

[](#issues)

If you find any issues pleas report them so I can fix them.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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

Every ~43 days

Recently: every ~93 days

Total

10

Last Release

3637d ago

Major Versions

v1.3-RC → v2.02015-06-13

### Community

Maintainers

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

---

Top Contributors

[![jorenvh](https://avatars.githubusercontent.com/u/8791625?v=4)](https://github.com/jorenvh "jorenvh (3 commits)")

### Embed Badge

![Health badge](/badges/jorenvanhocht-tracert/health.svg)

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

###  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)[ekino/newrelic-bundle

Integrate New Relic into Symfony2

28111.2M8](/packages/ekino-newrelic-bundle)

PHPackages © 2026

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