PHPackages                             esign/laravel-auto-timestamps - 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. esign/laravel-auto-timestamps

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

esign/laravel-auto-timestamps
=============================

Adds ON UPDATE CURRENT\_TIMESTAMP support for MySQLGrammar

1.0.0(5y ago)06.7k↓44.1%MITPHP

Since Jul 14Pushed 4y ago5 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

**THIS PACKAGE IS NOT MAINTAINED ANYMORE**

[`useCurrentOnUpdate`](https://github.com/laravel/framework/pull/35143) has been pr'd into the framework itself:

```
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrent()->useCurrentOnUpdate();
```

Laravel Auto Timestamps
=======================

[](#laravel-auto-timestamps)

This package adds the ability to use auto-updating timestamps for MySQL databases.

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

[](#installation)

You can install the package via composer:

```
composer require esign/laravel-auto-timestamps
```

If you want to define the database connections on which the migration helpers should be available, you could publish the config file:

```
php artisan vendor:publish --provider="Esign\AutoTimestamps\AutoTimestampsServiceProvider"
```

Usage
-----

[](#usage)

### Specifying database connections

[](#specifying-database-connections)

To specify the database connections on which the migrations should be available, edit the connections array in the config file. The mysql connection is used by default.

```
'connections' => [
    'mysql',
],
```

### Migrations

[](#migrations)

This package provides a `->useCurrentUpdate()` method on the blueprint class, which only triggers when running against a MySQL database.

A blueprint macro `->autoTimestamps()` is included that will allow you to quickly set up auto-updating `created_at` and `updated_at` timestamps. You may edit the name of this macro in the config file.

```
$table->autoTimestamps();

// results in:
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrentUpdate();
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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

Unknown

Total

1

Last Release

2135d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4599d7a8f6fdb63dd04305a49ae5ec9700b7a6eacdbe3a54f89584d75e34503f?d=identicon)[esign](/maintainers/esign)

---

Top Contributors

[![jordyvanderhaegen](https://avatars.githubusercontent.com/u/24370626?v=4)](https://github.com/jordyvanderhaegen "jordyvanderhaegen (5 commits)")

### Embed Badge

![Health badge](/badges/esign-laravel-auto-timestamps/health.svg)

```
[![Health](https://phpackages.com/badges/esign-laravel-auto-timestamps/health.svg)](https://phpackages.com/packages/esign-laravel-auto-timestamps)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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