PHPackages                             loadsys/cakephp-creatormodifier - 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. loadsys/cakephp-creatormodifier

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

loadsys/cakephp-creatormodifier
===============================

CakePHP 3.x Plugin to set Creator and Modifier automagic fields during save.

1.0.4(7y ago)513.9k3[2 issues](https://github.com/loadsys/CakePHP-CreatorModifier/issues)[3 PRs](https://github.com/loadsys/CakePHP-CreatorModifier/pulls)MITPHPPHP &gt;=5.4.16

Since Jul 22Pushed 7y ago8 watchersCompare

[ Source](https://github.com/loadsys/CakePHP-CreatorModifier)[ Packagist](https://packagist.org/packages/loadsys/cakephp-creatormodifier)[ Docs](https://github.com/loadsys/CakePHP-CreatorModifier)[ RSS](/packages/loadsys-cakephp-creatormodifier/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

CakePHP 3 CreatorModifier plugin
================================

[](#cakephp-3-creatormodifier-plugin)

[![Latest Version](https://camo.githubusercontent.com/6124559d22f05b68fa96427727c3e816f863e8e572efa8f5e06bcdf42ecd7214/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6c6f61647379732f43616b655048502d43726561746f724d6f6469666965722e7376673f7374796c653d666c61742d737175617265)](https://github.com/loadsys/CakePHP-CreatorModifier/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/5285ff114ae969f1f00ec929eb1259267b750d936135c6b216046ae5df7bd48c/68747470733a2f2f7472617669732d63692e6f72672f6c6f61647379732f43616b655048502d43726561746f724d6f6469666965722e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.org/loadsys/CakePHP-CreatorModifier)[![Coverage Status](https://camo.githubusercontent.com/46130574b083c40de69583e2ee3b961f73544c3ed16174f62d7d7db3930f7a13/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6c6f61647379732f43616b655048502d43726561746f724d6f6469666965722f62616467652e737667)](https://coveralls.io/r/loadsys/CakePHP-CreatorModifier)[![Total Downloads](https://camo.githubusercontent.com/1513c18eb77a3c225c09654f508668af2e4b9a46443a39f8247f5750b137c154/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f61647379732f63616b657068702d63726561746f726d6f6469666965722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loadsys/cakephp-creatormodifier)

Sets a `creator_id` and `modifier_id` on records during save using the logged in User.id field. Operates almost identically to the core's [Timestamp behavior](http://book.cakephp.org/3.0/en/orm/behaviors/timestamp.html).

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

[](#requirements)

- PHP 5.4.16+
- CakePHP 3.0+

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

[](#installation)

### Composer

[](#composer)

```
$ composer require loadsys/cakephp-creatormodifier:~1.0
```

In your `config/bootstrap.php` file, add:

```
Plugin::load('CreatorModifier', ['bootstrap' => false, 'routes' => false]);
```

OR

```
bin/cake plugin load CreatorModifier
```

Usage
-----

[](#usage)

- Add this plugin for use in an Table, by adding this line to your Table's `initialize()` method.

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

- Or to customize the behavior

```
$this->addBehavior('CreatorModifier.CreatorModifier', [
	'events' => [
		'Model.beforeSave' => [
			// Field storing the User.id who created the record,
			// only triggers on beforeSave when the Entity is new.
			'user_who_created_me_id' => 'new',

			// Field storing the User.id who modified the record,
			// always triggers on beforeSave.
			'user_who_modified_me_id' => 'always'
		]
	],
	// The key to read from `\Cake\Network\Request->session()->read();`
	// to obtain the User.id value to set during saves.
	'sessionUserIdKey' => 'Auth.User.id',
]);
```

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

[](#contributing)

### Code of Conduct

[](#code-of-conduct)

This project has adopted the Contributor Covenant as its [code of conduct](CODE_OF_CONDUCT.md). All contributors are expected to adhere to this code. [Translations are available](http://contributor-covenant.org/).

### Reporting Issues

[](#reporting-issues)

Please use [GitHub Isuses](https://github.com/loadsys/CakePHP-CreatorModifier/issues) for listing any known defects or issues.

### Development

[](#development)

When developing this plugin, please fork and issue a PR for any new development.

Set up a working copy:

```
$ git clone git@github.com:YOUR_USERNAME/CakePHP-CreatorModifier.git
$ cd CakePHP-CreatorModifier/
$ composer install
$ vendor/bin/phpcs --config-set installed_paths vendor/loadsys/loadsys_codesniffer,vendor/cakephp/cakephp-codesniffer
```

Make your changes:

```
$ git checkout -b your-topic-branch
# (Make your changes. Write some tests.)
$ vendor/bin/phpunit
$ vendor/bin/phpcs -p --extensions=php --standard=Loadsys ./src ./tests
```

Then commit and push your changes to your fork, and open a pull request.

License
-------

[](#license)

[MIT](https://github.com/loadsys/CakePHP-CreatorModifier/blob/master/LICENSE.md)

Copyright
---------

[](#copyright)

[Loadsys Web Strategies](http://www.loadsys.com) 2016

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

2834d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/2380c6ad9546e6c8ce5c5b641f5a4bce0c4d3e7f3a377dc287936dff50cc3064?d=identicon)[ricog](/maintainers/ricog)

---

Top Contributors

[![justinyost](https://avatars.githubusercontent.com/u/85320?v=4)](https://github.com/justinyost "justinyost (23 commits)")[![beporter](https://avatars.githubusercontent.com/u/637270?v=4)](https://github.com/beporter "beporter (10 commits)")[![kriskd](https://avatars.githubusercontent.com/u/193937?v=4)](https://github.com/kriskd "kriskd (4 commits)")

---

Tags

plugincakephpusermodifierBehaviorcreator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/loadsys-cakephp-creatormodifier/health.svg)

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

###  Alternatives

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

401.0M11](/packages/dereuromark-cakephp-shim)[cakedc/tiny-mce

TinyMCE Plugin for CakePHP

10790.2k](/packages/cakedc-tiny-mce)[dereuromark/cakephp-dto

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

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

A CakePHP plugin around geocoding tools and helpers.

51174.9k4](/packages/dereuromark-cakephp-geo)[dereuromark/cakephp-calendar

A CakePHP plugin to easily create calendars.

1646.8k1](/packages/dereuromark-cakephp-calendar)

PHPackages © 2026

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