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)07.4k↓87.3%MITPHP

Since Jul 14Pushed 4y ago3 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 4d 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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

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

2182d 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

[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)
