PHPackages                             berthott/laravel-userstamps - 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. berthott/laravel-userstamps

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

berthott/laravel-userstamps
===========================

Laravel Helper for Userstamps in Laravel

3.0.0(3y ago)0945MITPHP

Since Nov 4Pushed 1y ago2 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

[![test workflow](https://github.com/berthott/laravel-userstamps/actions/workflows/test.yml/badge.svg)](https://github.com/berthott/laravel-userstamps/actions/workflows/test.yml/badge.svg)

Laravel-Userstamps
==================

[](#laravel-userstamps)

A helper to maintain Userstamps in Laravel. Easily add and maintain userstamps by adding a trait to your model.

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

[](#installation)

```
$ composer require berthott/laravel-userstamps
```

Usage
-----

[](#usage)

- Create your table and corresponding model, eg. with `php artisan make:model YourModel -m`
- Add `$table->userstamps()` to your migration
    - If you use the `SoftDeletes` trait on your model additionally add `$table->softDeletesUserstamp()`
- Add the `HasUserstamps` trait to your newly generated model.
- For some more macros see `\berthott\Userstamps\UserstampsServiceProvider::register()`
- `creator()`, `editor()`, and `destroyer()` will be available for your convenience.

Options
-------

[](#options)

You may change the column names by adding these constants to your model.

```
const CREATED_BY = 'alt_created_by';
const UPDATED_BY = 'alt_updated_by';
const DELETED_BY = 'alt_deleted_by';
```

Note that in this case you cannot use `$table->userstamps()` but need to define the columns separately with

```
$table->unsignedBigInteger('alt_created_by')->nullable();
$table->unsignedBigInteger('alt_updated_by')->nullable();
$table->unsignedBigInteger('alt_deleted_by')->nullable();
```

Compatibility
-------------

[](#compatibility)

Tested with Laravel 10.x.

Credits
-------

[](#credits)

Inspired by  and .

License
-------

[](#license)

See [License File](license.md). Copyright © 2023 Jan Bladt.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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 ~234 days

Total

3

Last Release

1181d ago

Major Versions

1.0.0 → 2.0.02022-03-23

2.0.0 → 3.0.02023-02-16

### Community

Maintainers

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

---

Top Contributors

[![berthott](https://avatars.githubusercontent.com/u/3034025?v=4)](https://github.com/berthott "berthott (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/berthott-laravel-userstamps/health.svg)

```
[![Health](https://phpackages.com/badges/berthott-laravel-userstamps/health.svg)](https://phpackages.com/packages/berthott-laravel-userstamps)
```

PHPackages © 2026

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