PHPackages                             angelxmoreno/cakephp-auditor - 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. angelxmoreno/cakephp-auditor

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

angelxmoreno/cakephp-auditor
============================

Auditor plugin for CakePHP

1.0.2(8y ago)17MITPHP

Since Mar 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/angelxmoreno/cakephp-auditor)[ Packagist](https://packagist.org/packages/angelxmoreno/cakephp-auditor)[ RSS](/packages/angelxmoreno-cakephp-auditor/feed)WikiDiscussions master Synced yesterday

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

Auditor plugin for CakePHP
==========================

[](#auditor-plugin-for-cakephp)

Requirements
------------

[](#requirements)

```
* CakePHP 3.4.0+
* PHP 5.6+

```

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require angelxmoreno/cakephp-auditor
```

Then you need to apply two behaviors:

1. One on your UsersTable ( the Auditors )

```
$this->addBehavior('Auditor.Auditor');
```

2. Another on your tables you with to track

```
$this->addBehavior('Auditor.Audit');
```

Options
-------

[](#options)

For the AuditBehavior you have the following default options:

```
[
    'attach'      => true,
    'reverse'     => false,
    'skip_fields' => [],
]
```

### attach: Boolean ( default true)

[](#attach-boolean--default-true)

Whether or not the behavior should attach the given table to the AuditsTable as a HasMany association

### reverse: Boolean ( default false)

[](#reverse-boolean--default-false)

Whether or not the behavior should attach the AuditsTable to the given table as a belongsTo association

### skip\_fields: Array ( default empty array)

[](#skip_fields-array--default-empty-array)

The fields that should be ignored when saving the diff of the `previous` and `current` fields.

\[ It is recommended to add your `created` and `modified` fields\]

Extras
------

[](#extras)

I personally use a BaseTable and extend all my Table classes from that. It makes it easier to add traits, methods and other goodies to all my Table classes. I created a convenience method to conditionally add the Audit behavior when the Table class is not the AuditsTable. You can make use of it like so:

```
\Auditor\Model\Behavior\AuditBehavior::makeAuditable($this, [
    'attach'      => false,
    'skip_fields' => ['modified', 'created'],
]);
```

License
=======

[](#license)

Copyright 2018 Angel S. Moreno (angelxmoreno). All rights reserved.

Licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) License. Redistributions of the source code included in this repository must retain the copyright notice found in each file.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

2994d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58aebae1bf475954887c4c975a24950aa32c0dd34026400fa0303f7a43672389?d=identicon)[angelxmoreno](/maintainers/angelxmoreno)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/angelxmoreno-cakephp-auditor/health.svg)

```
[![Health](https://phpackages.com/badges/angelxmoreno-cakephp-auditor/health.svg)](https://phpackages.com/packages/angelxmoreno-cakephp-auditor)
```

###  Alternatives

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

18238.1k2](/packages/civicrm-civicrm-drupal-8)[dereuromark/cakephp-dto

A CakePHP plugin for generating immutable Data Transfer Objects with full type safety

2988.9k3](/packages/dereuromark-cakephp-dto)[proloser/cakephp-csv

5223.6k](/packages/proloser-cakephp-csv)[loadsys/cakephp_sitemap

A CakePHP Plugin for adding automatic XML and HTML Sitemaps to an app

2819.6k](/packages/loadsys-cakephp-sitemap)

PHPackages © 2026

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