PHPackages                             p0lym0rphik/cakephp-metabehavior - 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. p0lym0rphik/cakephp-metabehavior

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

p0lym0rphik/cakephp-metabehavior
================================

CakePHP MetaBehavior Plugin, dealing with additional datas

16PHP

Since Apr 22Pushed 11y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (1)Used By (0)

[![Coverage Status](https://camo.githubusercontent.com/feec0ead06e970b4589cd0f0c6c6f09712fe58d92967c4534d2cddec14c4a32b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f70306c796d30727068696b2f63616b657068702d6d6574616265686176696f722f62616467652e706e67)](https://coveralls.io/r/p0lym0rphik/cakephp-metabehavior)[![Build Status](https://camo.githubusercontent.com/3724b6a209471a9579705be8259e0c719fa65396dfff58c54bb1dc6dfadf125e/68747470733a2f2f7472617669732d63692e6f72672f70306c796d30727068696b2f63616b657068702d6d6574616265686176696f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/p0lym0rphik/cakephp-metabehavior)

CakePHP MetaBehavior
====================

[](#cakephp-metabehavior)

[![Join the chat at https://gitter.im/p0lym0rphik/cakephp-metabehavior](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/p0lym0rphik/cakephp-metabehavior?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

### Introduction

[](#introduction)

CakePHP Metabehavior is a meta data Behavior for CakePHP 2. This behavior allows you to store, retrieve and search for metadata about any record for any model within your database.

### Installation

[](#installation)

1. Add the folder on your app/Plugin directory.
2. Make sure that the Plugin is loaded (check your bootstrap configuration).
3. Run the following commands:

```
cd /path/to/installation/
app/Console/cake schema create MetaBehavior.metas
```

4. Add the behavior to the model you want to use.

```
class MyModel extends Model {
	public $actsAs = array('Meta');
}
```

### How to

[](#how-to)

1. Add datas to an object.

```
// Just set meta key on the primary request model
	$savedDatas = $this->request->data;
	$savedDatas['MyModel']['foo'] = 'bar';

	$this->MyModel->save($savedDatas);
```

2. Retrieve datas.

```
	// Just launch a find and datas are in the primary model.

	$model = $this->MyModel->findByid(1);

	return array(
		'MyModel' => array(
			'id' => 1,
			'foo' => 'bar'
		)
	)
```

3. You can directly search on meta values.

```
	$this->MyModel->find('all',array(
		'conditions' => array(
			'MyModel.foo =' => 'bar'
		)
	));
```

### Licence GPL2

[](#licence-gpl2)

CakePHP MetaBehavior plugin Copyright (C) 2014 Fabien Moreau

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e0ce4f3d3dc25564881ba5ce12e7dc77d2d304989acb86c1fb18589d15294728?d=identicon)[p0lym0rphik](/maintainers/p0lym0rphik)

---

Top Contributors

[![p0lym0rphik](https://avatars.githubusercontent.com/u/6058524?v=4)](https://github.com/p0lym0rphik "p0lym0rphik (28 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")[![josegonzalez](https://avatars.githubusercontent.com/u/65675?v=4)](https://github.com/josegonzalez "josegonzalez (1 commits)")

### Embed Badge

![Health badge](/badges/p0lym0rphik-cakephp-metabehavior/health.svg)

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

###  Alternatives

[shel/neos-hyphens

A plugin for Neos CMS which provides hyphens for the inline editor

20200.7k1](/packages/shel-neos-hyphens)[zachflower/indefinite-article

Library for programmatically determining the appropriate indefinite article to use (a/an)

11261.9k](/packages/zachflower-indefinite-article)

PHPackages © 2026

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