PHPackages                             boboldehampsink/auditlog - 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. boboldehampsink/auditlog

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

boboldehampsink/auditlog
========================

Audit Log Plugin for Craft CMS

0.7.1(9y ago)3920.6k14[5 issues](https://github.com/boboldehampsink/auditlog/issues)[2 PRs](https://github.com/boboldehampsink/auditlog/pulls)MITPHP

Since Nov 19Pushed 8y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (15)Used By (0)

DEPRECATED - Audit Log plugin for Craft CMS [![Build Status](https://camo.githubusercontent.com/d57d374b1cf02c3f60ce77b0b34e4b90ee48b50738fe6247c2bc0e3bc727be92/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f626f6c646568616d7073696e6b2f61756469746c6f672f6261646765732f6275696c642e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/boboldehampsink/auditlog/build-status/develop) [![Code Coverage](https://camo.githubusercontent.com/94a712a932ad73f5b6a1564cc0024e855931ee43cff8e5a89e073363fa8dcb92/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f626f6c646568616d7073696e6b2f61756469746c6f672f6261646765732f636f7665726167652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/boboldehampsink/auditlog/?branch=develop) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/270aa9301f1ffc8314746a9488984938835cc50da186426d5e118bb7cfd479d0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f626f6c646568616d7073696e6b2f61756469746c6f672f6261646765732f7175616c6974792d73636f72652e706e673f623d646576656c6f70)](https://scrutinizer-ci.com/g/boboldehampsink/auditlog/?branch=develop)
================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#deprecated---audit-log-plugin-for-craft-cms---)

Plugin that allows you to log adding/updating/deleting of categories/entries/users.

Features:

- Log Entries, Users and Categories
- View exact details on what fields have changed
- View who changed what on what page
- Export an Audit Log CSV
- Search, filter and use date ranges to find log entries
- Has hooks that you can use to extend this plugin
    - registerAuditLogSources
    - getAuditLogTableAttributeHtml
    - defineAvailableTableAttributes
    - modifyAuditLogSortableAttributes
- Has events that you can listen to
    - auditLog.onElementChanged

Important: The plugin's folder should be named "auditlog"

Deprecated
==========

[](#deprecated)

With the release of Craft 3 on 4-4-2018, this plugin has been deprecated. You can still use this with Craft 2 but you are encouraged to use (and develop) a Craft 3 version. At this moment, I have no plans to do so.

Development
===========

[](#development)

Run this from your Craft installation to test your changes to this plugin before submitting a Pull Request

```
phpunit --bootstrap craft/app/tests/bootstrap.php --configuration craft/plugins/auditlog/phpunit.xml.dist --coverage-text craft/plugins/auditlog/tests
```

Changelog
=========

[](#changelog)

### 0.7.1

[](#071)

- Fix comparing of non-existing attribute before, closing issue #15

### 0.7.0

[](#070)

- Added Craft 2.5 compatibility
- Refactored plugin for better readability, quality and testability
- All service code is now fully covered by unit tests

### 0.6.2

[](#062)

- Fixed a bug where the date range didn't fully work
- Fixed criteria attributes not fully working

### 0.6.1

[](#061)

- Added a registerAuditLogSources hook to provide custom sources/criteria
- Fixed Audit Log not being able to fetch a specific log item
- Added a MIT license

### 0.6.0

[](#060)

- Added the ability to control logging per element type
- Performance fixes - works much smoother now by fully utilizing ElementType API

### 0.5.0

[](#050)

- Added "onElementChanged" event so you can check if a saved element really changed
    - This event will also generate a diff between the before and after state of an element
- Fix errors that could occur when saving entries and categories anonymously
- Clean up arrays before showing, making them more readable

### 0.4.2

[](#042)

- Fixed source not being selected in CSV download

### 0.4.1

[](#041)

- Added CSRF protection for CSV downloads (thanks to Marion Newlevant)

### 0.4.0

[](#040)

- Added the ability to download a csv of the log
- Log more readable info, like Category Title &amp; Group, Section Name and User Groups
- Improved searching
- Fixed date ranges not being accurate
- Added a modifyAuditLogSortableAttributes hook

### 0.3.0

[](#030)

- Removed ability to clear log - you can uninstall the plugin to do this
- Added a date range selector
- Made sorting work
- Added modifyAuditLogTableAttributes and getAuditLogTableAttributeHtml hooks

Warning! This version is updated for Craft 2.3 and does NOT work on Craft 2.2

### 0.2.8

[](#028)

- Fixed a bug where the user couldn't be shown in some cases

### 0.2.7

[](#027)

- Fixed origin url in some cases

### 0.2.6

[](#026)

- Better object parsing

### 0.2.5

[](#025)

- Also parse logged objects to string
- Also log user id when registrating

### 0.2.4

[](#024)

- Also save section id for entry logs

### 0.2.3

[](#023)

- Fixed a bug where the plugin didn't work on PHP 5.3

### 0.2.2

[](#022)

- Added the ability to clear the log
- Better fieldtype parsing
- You can now easily go to origin
- ID (and for Entries, Title) are also stored now

### 0.2.1

[](#021)

- Fix "changes" url in CP - Thanks to Tim Kelty
- Avoid Twig errors on array value - Thanks to Tim Kelty

### 0.2.0

[](#020)

- Transformed AuditLog into an ElementType for easier sorting, filtering, searching and pagination

### 0.1.0

[](#010)

- Initial push to GitHub

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~59 days

Recently: every ~145 days

Total

13

Last Release

3533d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3dd0df0464b4919048281ee42a9210f4323e8f3a78d046067e550992e4a5fb7e?d=identicon)[boboldehampsink](/maintainers/boboldehampsink)

---

Top Contributors

[![timkelty](https://avatars.githubusercontent.com/u/18329?v=4)](https://github.com/timkelty "timkelty (2 commits)")[![marionnewlevant](https://avatars.githubusercontent.com/u/695477?v=4)](https://github.com/marionnewlevant "marionnewlevant (1 commits)")[![MRolefes](https://avatars.githubusercontent.com/u/11159600?v=4)](https://github.com/MRolefes "MRolefes (1 commits)")

### Embed Badge

![Health badge](/badges/boboldehampsink-auditlog/health.svg)

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

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3376.6k](/packages/starcitizentools-citizen-skin)[civicrm/civicrm-drupal-8

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

19251.4k3](/packages/civicrm-civicrm-drupal-8)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5721.7k4](/packages/pfefferle-wordpress-activitypub)

PHPackages © 2026

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