PHPackages                             hmic/cakephp-blame - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. hmic/cakephp-blame

ActiveCakephp-plugin[Authentication &amp; Authorization](/categories/authentication)

hmic/cakephp-blame
==================

CakePHP plugin for blaming a user (from AuthComponent) for save action on models.

0.3(11y ago)01871MITPHPPHP &gt;=5.4.0

Since Sep 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/hmic/cakephp-blame)[ Packagist](https://packagist.org/packages/hmic/cakephp-blame)[ RSS](/packages/hmic-cakephp-blame/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (4)Used By (0)

CakePHP 3.0 plugin to update e.g. `created_by` and `modified_by` fields. Idea taken from and originates of ceeram/blame

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

[](#installation)

Add the following lines to your application's `composer.json`:

```
	"require": {
		"hmic/cakephp-blame": "dev-master"
	}

```

followed by the command:

`composer update`

Or run the following command directly without changing your `composer.json`:

`composer require hmic/cakephp-blame:dev-master`

OR: Create a `plugins/Blame` dir under your app's dir and checkout this repo and make sure `['autoload' => true]` is set when loading the plugin like shown below.

Usage
-----

[](#usage)

In your app's `config/bootstrap.php` add: `Plugin::load('Blame', ['autoload' => true])`;

Configuration
-------------

[](#configuration)

Add the following line to your AppController:

```
	use \Blame\Controller\BlameTrait;

```

Attach the behavior in the models you like to use. Please note that these need to have the following 2 fields in the database table for it to work: `created_by int(11) NULL` and `modified_by int(11) NULL`

```
	public function initialize(array $config) {
		$this->addBehavior('Blame.Blame');
	}

```

Routing
-------

[](#routing)

Has been fixed in the core in the meantime - just works right now! This is work in progress, but you can have routing working, for use with baked views, (works only for the default configuration for now) by adding this to your app's `config/routes.php` directly defore the `$routes->fallbacks();` and commenting that out, like this:

```
	$routes->connect('/:controller', ['action' => 'index'], ['routeClass' => 'Blame.BlameRoute']);
	$routes->connect('/:controller/:action/*', [], ['routeClass' => 'Blame.BlameRoute']);
//	$routes->fallbacks();

```

\## Bake If you want to bake your stuff you need to bake the model first, then add the behavior as shown above and afterwards bake the controller and views. It will take care of the associations automatically. For the routing of the baked views to work for the assocations too, see above.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.2% 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 ~6 days

Total

3

Last Release

4295d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/09b0b10e86d887b84702cde8632030190d1ed14f21fb438d51ee6829ebe2aafd?d=identicon)[hmic](/maintainers/hmic)

---

Top Contributors

[![ceeram](https://avatars.githubusercontent.com/u/111448?v=4)](https://github.com/ceeram "ceeram (23 commits)")[![hmic](https://avatars.githubusercontent.com/u/876917?v=4)](https://github.com/hmic "hmic (12 commits)")[![dakota](https://avatars.githubusercontent.com/u/83255?v=4)](https://github.com/dakota "dakota (1 commits)")[![veganista](https://avatars.githubusercontent.com/u/405763?v=4)](https://github.com/veganista "veganista (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hmic-cakephp-blame/health.svg)

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

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[october/rain

October Rain Library

1601.7M83](/packages/october-rain)[rainlab/user-plugin

User plugin for October CMS

11955.0k15](/packages/rainlab-user-plugin)[discourse/wp-discourse

WordPress plugin that allows you to use Discourse as a community engine for your WordPress blog.

5429.6k](/packages/discourse-wp-discourse)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)

PHPackages © 2026

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