PHPackages                             always-open/laravel-process-stamps - 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. always-open/laravel-process-stamps

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

always-open/laravel-process-stamps
==================================

Logs which process created or modified a record

v8.1.0(1y ago)045.4k↓31.4%[1 PRs](https://github.com/always-open/laravel-process-stamps/pulls)2MITPHPPHP &gt;=8.2CI passing

Since Sep 5Pushed 8mo agoCompare

[ Source](https://github.com/always-open/laravel-process-stamps)[ Packagist](https://packagist.org/packages/always-open/laravel-process-stamps)[ Docs](https://github.com/always-open/laravel-process-stamps)[ RSS](/packages/always-open-laravel-process-stamps/feed)WikiDiscussions 8.x Synced 1mo ago

READMEChangelog (8)Dependencies (4)Versions (38)Used By (2)

Laravel Process Stamps
======================

[](#laravel-process-stamps)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a094a8aa092ea7ec5293d86f4c91c278e63ff28c3efea0183427d4896935a30a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c776179732d6f70656e2f6c61726176656c2d70726f636573732d7374616d70732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/always-open/laravel-process-stamps)[![Build Status](https://camo.githubusercontent.com/af4f78ac65a5108c832da2edf785646f2a9c6347825346f0cbb64bccddb7a4f4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f616c776179732d6f70656e2f6c61726176656c2d70726f636573732d7374616d70732f74657374733f7374796c653d666c61742d737175617265)](https://github.com/always-open/laravel-process-stamps/actions?query=workflow%3Atests)[![Total Downloads](https://camo.githubusercontent.com/24b593ef9aacaf576b4a790e69a3ea11d1652a22915e45ff1dfab2631db58efa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c776179732d6f70656e2f6c61726176656c2d70726f636573732d7374616d70732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/always-open/laravel-process-stamps)[![Maintainability](https://camo.githubusercontent.com/bea91b225e14968b1ca30cc7e3fc2e2bd4f400a529511da0f97d61e4aa855be1/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66376466626264343436323334373937363235392f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/always-open/laravel-process-stamps/maintainability)

It is sometimes very useful to know which process created or modified a particular record in your database. This package provides a trait to add to your Laravel models which automatically logs that for you.

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

[](#installation)

You can install the package via composer:

```
composer require always-open/laravel-process-stamps
```

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

[](#configuration)

```
php artisan vendor:publish --provider="\AlwaysOpen\ProcessStamps\ProcessStampsServiceProvider"
```

Running the above command will publish both the migration and the config file.

Usage
-----

[](#usage)

After adding the proper fields to your table, add the trait to your model.

```
// User model
class User extends Model
{
    use ProcessStampable;
```

Next, create a migration for your table and include the following:

```
$table->processIds();
```

To specify your own foreign key or index names, include the following options:

```
$table->processIds([
    'created_index_name' => 'custom_created_index_name',
    'updated_index_name' => 'custom_updated_index_name',
    'created_foreign_key_name' => 'custom_created_foreign_key_name',
    'updated_foreign_key_name' => 'custom_updated_foreign_key_name',
    ]);
```

That will generate the nessesary field names to track processes.

### Testing

[](#testing)

```
composer test
```

Using Docker
------------

[](#using-docker)

All assets are set up under the docker-compose.yml file. The first time you run the docker image you must build it with the following command:

```
docker-compose build
```

Then you can bring it up in the background using:

```
docker-compose up -d
```

And the image is aliased so you can access its command line via:

```
docker exec -it processes-stamp-app /bin/bash
```

From there you can run the tests within an isolated environment

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email @tomschlick or @qschmick directly instead of using the issue tracker.

Credits
-------

[](#credits)

- [Tom Schlick](https://github.com/tomschlick)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance52

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 62.1% 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 ~73 days

Recently: every ~284 days

Total

36

Last Release

257d ago

Major Versions

v3.4.0 → v4.0.02021-06-15

v4.0.0 → v5.0.02022-02-10

v5.0.0 → v6.0.02022-06-29

6.x-dev → v7.0.02023-07-17

v7.0.0 → v8.0.02025-02-17

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

v2.0.0PHP ^7.2.5

v3.0.0PHP ^7.3

v3.2.0PHP ^7.3|^8.0

v6.0.0PHP ^8.0.0|^8.1.0

v8.0.0PHP &gt;=8.2

### Community

Maintainers

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

---

Top Contributors

[![tomschlick](https://avatars.githubusercontent.com/u/70184?v=4)](https://github.com/tomschlick "tomschlick (18 commits)")[![qschmick](https://avatars.githubusercontent.com/u/5342767?v=4)](https://github.com/qschmick "qschmick (9 commits)")[![solflare](https://avatars.githubusercontent.com/u/8484449?v=4)](https://github.com/solflare "solflare (2 commits)")

---

Tags

audit-loghacktoberfestlaravelphplaravelloggingalways-openlaravel-process-stamps

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/always-open-laravel-process-stamps/health.svg)

```
[![Health](https://phpackages.com/badges/always-open-laravel-process-stamps/health.svg)](https://phpackages.com/packages/always-open-laravel-process-stamps)
```

###  Alternatives

[hosmelq/laravel-logsnag

Integrate the power of LogSnag's real-time event tracking into your Laravel application.

237.9k](/packages/hosmelq-laravel-logsnag)

PHPackages © 2026

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