PHPackages                             amol/reactiveci4 - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. amol/reactiveci4

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

amol/reactiveci4
================

Activity logger for Codeigniter 4

v1.0.2(3y ago)320MITPHP

Since Dec 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/AmolKumarGupta/ReactiveCi4)[ Packagist](https://packagist.org/packages/amol/reactiveci4)[ Docs](https://github.com/AmolKumarGupta/ReactiveCi4/)[ RSS](/packages/amol-reactiveci4/feed)WikiDiscussions master Synced 1mo ago

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

Log activities in codeigniter 4.
================================

[](#log-activities-in-codeigniter-4)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4235f675cb41fe8d55398e5217bf4d928a3b4ca83d6bf75da2a42156b2f1271f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616d6f6c2f72656163746976656369342e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amol/reactiveci4)

The `amol/reactiveci4` helps to log activities of user in your website easily. It stores all activities in database table `activity`. It helps to boost your work speed.

#### Features

[](#features)

1. Easy setup.
2. Use Codeigniter Models.
3. Easy to use.

Basic Example
-------------

[](#basic-example)

```
helper('reactive');
reactive($user, "You updated the profile");
```

Advanced Example using Class
----------------------------

[](#advanced-example-using-class)

```
use Amol\ReactiveCi4\Reactive;

$userModel = model('App\Models\UserModel');
$user = $userModel->find(1);
$properties = [
    "ip" => "127.0.0.1"
];
$label = "profile review"

$record = new Reactive();
$record->log($user, "admin changed user's profile photo", $admin, $properties, $label);
```

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

[](#installation)

you can install the package via composer.

```
composer require amol/reactiveci4
```

After installing. run `spark` command

```
php spark reactive:setup
```

it will create `Reactive` config and `Activity` model file. it also migrate `activity` table.

Documentation and Examples
--------------------------

[](#documentation-and-examples)

### Class Reactive

[](#class-reactive)

has function `log`

```
public function log(object $subject, string $text, object $causer=null,array $properties=[], string $label=null ): id|false
```

### Helper

[](#helper)

It also provides helper

```
function reactive(object $subject, string $text, object $causer=null,array $properties=[], string $label=null )
```

return id of activity instance or false on failure.

### `Activity` Model

[](#activity-model)

You can use model to retrieve data from activity table and also do crud operations with it. You can also customize the model.

### Label

[](#label)

Label used to categories the record in different groups. You can change its default value using config file.

Full documentation and Examples
-------------------------------

[](#full-documentation-and-examples)

Coming soon

Bugs &amp; Issues
-----------------

[](#bugs--issues)

If you find any bugs. Dont hesitate to create a [issue](https://github.com/AmolKumarGupta/ReactiveCi4/issues).

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/AmolKumarGupta/ReactiveCi4/blob/master/CONTRIBUTING.md) for details.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1248d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5875832decab33e23a0fd18687e0c02a3a2f69c9c67be12b398b5ea1ac11029c?d=identicon)[AmolKumarGupta](/maintainers/AmolKumarGupta)

---

Top Contributors

[![AmolKumarGupta](https://avatars.githubusercontent.com/u/88397611?v=4)](https://github.com/AmolKumarGupta "AmolKumarGupta (11 commits)")

---

Tags

activityci4codeigniter4loggerreactiveci4logcodeigniteractivitycodeigniter4reactive

### Embed Badge

![Health badge](/badges/amol-reactiveci4/health.svg)

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

###  Alternatives

[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[bolechen/nova-activitylog

A tool to activity logger to monitor the users of your Laravel Nova.

99683.9k4](/packages/bolechen-nova-activitylog)[kiwicommerce/module-admin-activity

The Admin Activity extension makes it easy to track all admin activity and revert the modification.

102407.9k](/packages/kiwicommerce-module-admin-activity)[catgento/module-admin-activity

The Admin Activity extension makes it easy to track all admin activity and revert the modification.

64102.6k](/packages/catgento-module-admin-activity)[itonomy/module-admin-activity

A continuation of The Admin Activity extension by KiwiCommerce. This extension makes it easy to track all admin activity and revert the modification.

1270.4k](/packages/itonomy-module-admin-activity)[tatter/audits

Lightweight object logging for CodeIgniter 4

1320.1k3](/packages/tatter-audits)

PHPackages © 2026

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