PHPackages                             conceptbyte/time-traveller - 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. conceptbyte/time-traveller

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

conceptbyte/time-traveller
==========================

Time travelling for Laravel models.

v1.0.1(10y ago)34922[1 issues](https://github.com/conceptbyte/time-traveller/issues)[1 PRs](https://github.com/conceptbyte/time-traveller/pulls)MITPHPPHP &gt;=5.5.9

Since Sep 19Pushed 9y ago1 watchersCompare

[ Source](https://github.com/conceptbyte/time-traveller)[ Packagist](https://packagist.org/packages/conceptbyte/time-traveller)[ RSS](/packages/conceptbyte-time-traveller/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Laravel Time Traveller
----------------------

[](#laravel-time-traveller)

Time travelling for Laravel 5 models.

- Uses database table to store model states.
- Can be accessed from ORM or URL Query String.
- Bundled command to keep revisions table healthy.
- Ability to override Revisions model for extension.

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

[](#installation)

Run the following command on your project root. `composer require conceptbyte/time-traveller`

Add the service provider to the `config/app.php` file under the `providers` key. Make sure to add it after the default laravel service providers.

```
'providers' => [
    ...,
    'ConceptByte\TimeTraveller\TimeTravellerServiceProvider'
]
```

Publish Configuration
---------------------

[](#publish-configuration)

Run `php artisan vendor:publish` to publish the package configurations.

Modify Configuration
--------------------

[](#modify-configuration)

Use the `config/timetraveller.php` file to modify the package defaults.

- Revisions Model `'model' => ConceptByte\TimeTraveller\Models\Revision::class`
- Query String Parameter `'at' => 'at'`
- Clear audits that are older than `'clear' => '365'`

Usage
-----

[](#usage)

Enable time traveller on a model by using the trait.

```
class Post extents Model
{
    use TimeTravel;

    public function getBy()
    {
        return Auth::user()->name;
    }
}
```

All models that use the trait must implement `abstract public function getBy()` which returns any string. This function can be used to save any additional attributes such as the owner of the change.

\###Get the state of a record at a specific data/time.

```
Post::at('58781813')->find(1);
```

\###Get the state of a record using a query string.

URL: `timetravel.app/posts/1?at=58781813`

```
Post::find(1);
```

\###Get a model with revisions

```
Post::with('revisions')->first();
```

\###You can clear the audits table records that are older than a specified range. `php artisan time-traveller:clear`. This will read the config file and clear records that are older than the configured number of days.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

3692d ago

Major Versions

v0.1.2 → v1.0.02016-05-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1526442?v=4)[Rajdeep Tarat](/maintainers/rajdeeptarat)[@rajdeeptarat](https://github.com/rajdeeptarat)

---

Top Contributors

[![rajdeeptarat](https://avatars.githubusercontent.com/u/1526442?v=4)](https://github.com/rajdeeptarat "rajdeeptarat (10 commits)")

---

Tags

audit-logseloquentlaravellaravel-modelsphprevisionstraveller

### Embed Badge

![Health badge](/badges/conceptbyte-time-traveller/health.svg)

```
[![Health](https://phpackages.com/badges/conceptbyte-time-traveller/health.svg)](https://phpackages.com/packages/conceptbyte-time-traveller)
```

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k43.2M624](/packages/spatie-laravel-medialibrary)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M184](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

21332.6M1.5k](/packages/illuminate-queue)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M159](/packages/spatie-laravel-health)

PHPackages © 2026

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