PHPackages                             mathsgod/r-db-eventlog - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mathsgod/r-db-eventlog

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mathsgod/r-db-eventlog
======================

1.0.1(3y ago)05MITPHP

Since Oct 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mathsgod/r-db-eventlog)[ Packagist](https://packagist.org/packages/mathsgod/r-db-eventlog)[ RSS](/packages/mathsgod-r-db-eventlog/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

r-db-eventlog
=============

[](#r-db-eventlog)

Auto generated event log when a database record is created, inserted and deleted.

setup
-----

[](#setup)

Create database table EventLog

```
CREATE TABLE `EventLog` (
  `eventlog_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `class` varchar(64) DEFAULT NULL,
  `id` int(10) unsigned NOT NULL,
  `action` varchar(64) DEFAULT NULL,
  `source` json DEFAULT NULL,
  `target` json DEFAULT NULL,
  `remark` text,
  `user_id` int(10) unsigned NOT NULL,
  `created_time` datetime NOT NULL,
  `status` int(10) unsigned DEFAULT '0',
  `different` json DEFAULT NULL,
  PRIMARY KEY (`eventlog_id`),
  KEY `class` (`class`),
  KEY `user_id` (`user_id`),
  KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;
```

Register listeners

```
$schema = \R\DB\Model::GetSchema();

$subscriber = new ListenerSubscriber();

$subscriber->setUserId(1);

$schema->eventDispatcher()->subscribeListenersFrom($subscriber);
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Every ~0 days

Total

2

Last Release

1360d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18732337?v=4)[Raymond](/maintainers/mathsgod)[@mathsgod](https://github.com/mathsgod)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mathsgod-r-db-eventlog/health.svg)

```
[![Health](https://phpackages.com/badges/mathsgod-r-db-eventlog/health.svg)](https://phpackages.com/packages/mathsgod-r-db-eventlog)
```

###  Alternatives

[macfja/phar-builder

12311.9k11](/packages/macfja-phar-builder)[paulredmond/html-to-amp

A PHP Library to Convert HTML to AMP HTML

6826.1k](/packages/paulredmond-html-to-amp)[refinery29/league-lazy-event

Provides a LazyListener for use with league/event which allows for lazy fetching of actual listeners.

1423.3k](/packages/refinery29-league-lazy-event)

PHPackages © 2026

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