PHPackages                             adnduweb/ci4\_logs - 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. adnduweb/ci4\_logs

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

adnduweb/ci4\_logs
==================

Lightweight logs management for CodeIgniter 4

1.0.4.6(5y ago)0371MITPHPPHP &gt;=7.2

Since Nov 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/adnduweb/ci4_logs)[ Packagist](https://packagist.org/packages/adnduweb/ci4_logs)[ Docs](https://github.com/adnduweb/ci4_logs)[ RSS](/packages/adnduweb-ci4-logs/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (12)Used By (0)

ci4\_logs
=========

[](#ci4_logs)

Gestion de logs pour codeIgniter 4

Quick Start Install with Composer: &gt; composer require spreadaurora/ci4\_logs Update the database: &gt; php spark migrate -all Setup your models: class JobModel extends Model { use \\Tatter\\Audits\\Traits\\AuditsTrait; protected $afterInsert = \['auditInsert'\]; protected $afterUpdate = \['auditUpdate'\]; protected $afterDelete = \['auditDelete'\]; All done! Features Provides ready-to-use object logging for CodeIgniter 4

Installation Install easily via Composer to take advantage of CodeIgniter 4's autoloading capabilities and always be up-to-date:

> composer require spreadaurora/ci4\_logs Or, install manually by downloading the source files and adding the directory to app/Config/Autoload.php.

Once the files are downloaded and included in the autoload, run any library migrations to ensure the database is setup correctly:

> php spark migrate -all Pro Tip: You can add the spark command to your composer.json to ensure your database is always current with the latest release:

{ ... "scripts": { "post-update-cmd": \[ "composer dump-autoload", "php spark migrate -all" \] }, ... Configuration (optional) The library's default behavior can be altered by extending its config file. Copy bin/Audits.php to app/Config/Audits.php and follow the instructions in the comments. If no config file is found in app/Config the library will use its own.

Usage Once the library is included all the resources are ready to go and you just need to specify which models and events to audit. Use AuditsTrait to add support to any models you would like tracked:

class JobModel extends Model { use \\spreadaurora\\ci4\_logs\\Traits\\AuditsTrait; Then specify which events you want audited by assigning the corresponding audit methods for those events:

protected $afterInsert = \['auditInsert'\]; protected $afterUpdate = \['auditUpdate'\]; protected $afterDelete = \['auditDelete'\]; The Audits library will create basic logs of each event in the audits table, for example:

| id | source | source\_id | user\_id | event | summary | created\_at | +----+--------+-----------+---------+--------+----------+---------------------+ | 10 | sites | 27 | 9 | create | 2 rows | 2019-04-05 15:58:40 | | 11 | jobs | 10 | 9 | update | 5 rows | 2019-04-05 16:01:35 |

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Recently: every ~22 days

Total

11

Last Release

2031d ago

PHP version history (2 changes)1.0.0PHP ^7.0

1.0.2PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e505b99e2c7e2f9d1cc3999d81ce7e15a23a985046dccd36a75afb6b6dcb54c?d=identicon)[adnduweb](/maintainers/adnduweb)

---

Top Contributors

[![adnduweb](https://avatars.githubusercontent.com/u/34213953?v=4)](https://github.com/adnduweb "adnduweb (13 commits)")

### Embed Badge

![Health badge](/badges/adnduweb-ci4-logs/health.svg)

```
[![Health](https://phpackages.com/badges/adnduweb-ci4-logs/health.svg)](https://phpackages.com/packages/adnduweb-ci4-logs)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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