PHPackages                             geekjeef/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. [Database &amp; ORM](/categories/database)
4. /
5. geekjeef/laravel-userstamps

ActiveLibrary[Database &amp; ORM](/categories/database)

geekjeef/laravel-userstamps
===========================

A simple Laravel package for Eloquent Model user specific fields.

08PHP

Since Dec 30Pushed 2y agoCompare

[ Source](https://github.com/geek-jeef/laravel-userstamps)[ Packagist](https://packagist.org/packages/geekjeef/laravel-userstamps)[ RSS](/packages/geekjeef-laravel-userstamps/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Userstamps
==================

[](#laravel-userstamps)

Laravel Userstamps is a simple Laravel package for your Eloquent Model user specific fields. This package automatically inserts/updates an user id on your table on who created, last updated and deleted the record.

Install
-------

[](#install)

1. Add repositories in composer.json

```
"repositories": [
   {
     "url": "https://github.com/hrshadhin/laravel-userstamps.git",

      "type": "git"
    }
 ],

```

2. Add the package name in `composer.json` require section:
    - For Laravel 5.x use [v1.0.1](https://github.com/hrshadhin/laravel-userstamps/releases/tag/v1.0.1)

    ```
     "hrshadhin/laravel-userstamps": "^1.0.0"

    ```

    - For Laravel 6.x use `master` or [v2.0.1](https://github.com/hrshadhin/laravel-userstamps/releases/tag/v2.0.1)

    ```
     "hrshadhin/laravel-userstamps": "^2.0.0"

    ```

    - For Laravel 7.x use `master` or [v3.0.0](https://github.com/hrshadhin/laravel-userstamps/releases/tag/v3.0.0)

    ```
     "hrshadhin/laravel-userstamps": "^3.0.0"

    ```

Usage
-----

[](#usage)

Update your model's migration and add `created_by`, `updated_by` and `deleted_by` field using the `userstamps()` blueprint macro.

```
Schema::create('users', function (Blueprint $table) {
    $table->increments('id');
    $table->string('name', 100);
    $table->userstamps();
    $table->timestamps();
});
```

Then use `UserstampsTrait` on your model.

```
namespace App;

use Hrshadhin\Userstamps\UserstampsTrait;

class User extends Model
{
    use UserstampsTrait;
}
```

Dropping columns
----------------

[](#dropping-columns)

You can drop auditable columns using `dropUserstamps()` method.

```
Schema::create('users', function (Blueprint $table) {
    $table->dropUserstamps();
});
```

And your done!

License
-------

[](#license)

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

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 68% 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://avatars.githubusercontent.com/u/66073113?v=4)[geek-jeef](/maintainers/geek-jeef)[@geek-jeef](https://github.com/geek-jeef)

---

Top Contributors

[![hrshadhin](https://avatars.githubusercontent.com/u/2318901?v=4)](https://github.com/hrshadhin "hrshadhin (17 commits)")[![aramhuseiny](https://avatars.githubusercontent.com/u/12831959?v=4)](https://github.com/aramhuseiny "aramhuseiny (4 commits)")[![geek-jeef](https://avatars.githubusercontent.com/u/66073113?v=4)](https://github.com/geek-jeef "geek-jeef (2 commits)")[![b4oshany](https://avatars.githubusercontent.com/u/1830494?v=4)](https://github.com/b4oshany "b4oshany (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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