PHPackages                             mcferno/cakephp-postable-behavior - 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. [Framework](/categories/framework)
4. /
5. mcferno/cakephp-postable-behavior

ActiveCakephp-plugin[Framework](/categories/framework)

mcferno/cakephp-postable-behavior
=================================

Model Behavior for CakePHP

1.0.0(7y ago)123MITPHP

Since Apr 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mcferno/cakephp-postable-behavior)[ Packagist](https://packagist.org/packages/mcferno/cakephp-postable-behavior)[ RSS](/packages/mcferno-cakephp-postable-behavior/feed)WikiDiscussions master Synced 4d ago

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

```
/**
 * CakePHP Postable Behavior
 * @author Patrick McFern
 * @source https://github.com/mcferno/cakephp-postable-behavior
 *
 * Allows you to map data from one or more models to a central model/table
 * which maintains an index of common fields. The resulting set of data can be
 * manipulated in an abstract fashion, allowing you to blur the differences
 * between different types of data.
 *
 * Settings:
 *
 * - storageModel : default 'Post'.
 *     Name of the model which will be instantiated and used as the storage for
 *     the common data. This model should never use this behavior.
 *
 * - mapping :
 *     By default, the field name of all non-essential columns in the
 *     storage model will be used as-is to find matches in other models using
 *     the behavior. This is used to override the mapping for a specific model.
 *
 *     Format : array('columnNameInStorageModel' => 'fieldNameInSourceModel')
 *
 *     If a columnName is assigned `false`, it will be ignored during mapping.
 *     If a columnName is assigned `true`, it will invoke a Model callback to
 *       handle the data assignment (below).
 *
 * - mappingCallback : default 'postableMappingCallback'
 *     The model callback function used to map data. This allows the model to
 *     manipulate the data as needed before it is recorded in the storage model.
 *     To enable this callback, set the mapping to `true` for a column (above)
 *
 *     Syntax : postableMappingCallback(columnName, modelData);
 *
 *     The callback should return data for the specific columnName in a saveable
 *     format.
 *
 * - inclusionCallback : default `null`
 *     The model callback function used to determine whether or not a specific
 *     record should be included in the storage model.
 *
 *     Syntax : postableInclusionCallback(modelData);
 *
 *     The callback should return true (use) or false (omit)
 */
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Unknown

Total

1

Last Release

2575d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/844c1c587a04c14157ae1fb87990fd4392778a020379bd183c16214cce27cb3c?d=identicon)[mcferno](/maintainers/mcferno)

---

Top Contributors

[![mcferno](https://avatars.githubusercontent.com/u/299985?v=4)](https://github.com/mcferno "mcferno (18 commits)")

### Embed Badge

![Health badge](/badges/mcferno-cakephp-postable-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/mcferno-cakephp-postable-behavior/health.svg)](https://phpackages.com/packages/mcferno-cakephp-postable-behavior)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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