PHPackages                             codestepsbd/historykeeper - 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. codestepsbd/historykeeper

ActiveLibrary

codestepsbd/historykeeper
=========================

This will capture data for selected table for insert, update and delete

271PHP

Since May 6Pushed 2y ago1 watchersCompare

[ Source](https://github.com/codeStepsBD/DataHistoryKeeper)[ Packagist](https://packagist.org/packages/codestepsbd/historykeeper)[ RSS](/packages/codestepsbd-historykeeper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel HistoryKeeper Package
=============================

[](#laravel-historykeeper-package)

The Laravel HistoryKeeper package provides functionality to manage history tables and triggers in your Laravel application. It allows you to create, update, and manage history tables and triggers easily.

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

[](#installation)

You can install the package via Composer. Run the following command in your terminal:

```
composer require codestepsbd/historykeeper:dev-master
```

Database Migration
------------------

[](#database-migration)

After installation you have to run migration for creating the `table_history_with_settings` table.

You can run the migration using Laravel's migration command:

```
php artisan migrate
```

Usage
-----

[](#usage)

### Commands

[](#commands)

The package provides a console command `app:update-history-tables-and-triggers` with several options:

- `--makeNewHistoryTable=false`: Creates a new history table if set to `true`.
- `--runTest`: Runs a test to understand package is working or not.
- `--scanMismatch`: Scans for mismatches between the base table and its history table.

You can use the command with options like this:

```
php artisan app:update-history-tables-and-triggers --makeNewHistoryTable=true --runTest --scanMismatch
```

### Routes

[](#routes)

The package defines several routes under the `history-keeper` prefix:

- `/`: Displays the index page of history data.
- `/url-command/{value?}`: Provides a command URL endpoint. here value can be `runTest` for run test, `true` for creating history tables and `scanMismatch` for Scans for mismatches between the base table and its history table on web browser.

### Middleware

[](#middleware)

Middleware can be applied to the `history-keeper` routes using the `config("historyKeeper.middleware")` configuration.

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](LICENSE).

---

Feel free to customize this according to your package's specific details and requirements.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 52.8% 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://www.gravatar.com/avatar/379667d9f35d225b212771cb1ee47ab0beb31182e876dd1436c350ebfc0e4461?d=identicon)[codeStepsBD](/maintainers/codeStepsBD)

---

Top Contributors

[![mdariftiens](https://avatars.githubusercontent.com/u/14193963?v=4)](https://github.com/mdariftiens "mdariftiens (19 commits)")[![cseselim](https://avatars.githubusercontent.com/u/32521282?v=4)](https://github.com/cseselim "cseselim (11 commits)")[![codeStepsBD](https://avatars.githubusercontent.com/u/149757903?v=4)](https://github.com/codeStepsBD "codeStepsBD (4 commits)")[![mesbaulislamrony](https://avatars.githubusercontent.com/u/62334589?v=4)](https://github.com/mesbaulislamrony "mesbaulislamrony (2 commits)")

### Embed Badge

![Health badge](/badges/codestepsbd-historykeeper/health.svg)

```
[![Health](https://phpackages.com/badges/codestepsbd-historykeeper/health.svg)](https://phpackages.com/packages/codestepsbd-historykeeper)
```

PHPackages © 2026

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