PHPackages                             lrnzfrr/custom-fields - 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. lrnzfrr/custom-fields

ActiveCakephp-plugin

lrnzfrr/custom-fields
=====================

CustomFields plugin for CakePHP

v0.0.1(7y ago)125MITPHPCI failing

Since Mar 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lrnzfrr/custom-fields)[ Packagist](https://packagist.org/packages/lrnzfrr/custom-fields)[ RSS](/packages/lrnzfrr-custom-fields/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

CustomFields plugin for CakePHP
===============================

[](#customfields-plugin-for-cakephp)

With this plugin you can easy add custom fields to all your records!

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).

```
composer require lrnzfrr/custom-fields

```

Load the plugin:

```
bin/cake plugin load lrnzfrr/CustomFields
```

Use the Plugin
--------------

[](#use-the-plugin)

First of all be sure your entity has custom\_fields accessible

Launch migration for the plugin:

```
bin/cake migrations migrate -p lrnzfrr/CustomFields

```

Add the behavior in Model Table:

```
        $this->addBehavior('lrnzfrr/CustomFields.CustomFieldable',
                          ['accessibleFields'=>['article_type','article_status']  // custom fields accessible
                          ]);
```

Use the finder method in Controller:

```
    $articles = $this->Articles->find('withCustomFields');
```

in the view:

```
        echo $this->Form->hidden('custom_fields.0.name',['value'=>'article_type']);
        echo $this->Form->text('custom_fields.0.value',['value'=>'','label'=>'article_type','placeholder'=>'Article Type']);

        echo $this->Form->hidden('custom_fields.1.name',['value'=>'article_status']);
        echo $this->Form->text('custom_fields.1.value',['value'=>'','label'=>'article_status','placeholder'=>'Article Status']);
```

If you prefer you can also get the custom fields inside entity with assoc key =&gt; value with getCustomFieldsAssoc method:

inside entity:

```
use lrnzfrr\CustomFields\Model\Traits\CustomFieldTrait;

class ....
use CustomFieldTrait;
protected $_virtual = ['custom_fields_assoc'];

    /*
    ** Create a virtual property with custom Fields
    */
    protected function _getCustomFieldsAssoc()
    {
        return $this->getCustomFieldsAssoc();
    }
```

That's all!

[composer](https://getcomposer.org)

[cakephp](https://cakephp.org/)

[flor.it](https://www.flor.it)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

2601d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8340a82177f1e7d0cf9b54b27960bbc2492ce01ba58774b77bd639e49b97fae9?d=identicon)[lrnzfrr](/maintainers/lrnzfrr)

---

Top Contributors

[![lrnzfrr](https://avatars.githubusercontent.com/u/2543030?v=4)](https://github.com/lrnzfrr "lrnzfrr (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lrnzfrr-custom-fields/health.svg)

```
[![Health](https://phpackages.com/badges/lrnzfrr-custom-fields/health.svg)](https://phpackages.com/packages/lrnzfrr-custom-fields)
```

###  Alternatives

[friendsofcake/cakepdf

CakePHP plugin for creating and/or rendering Pdfs, several Pdf engines supported.

3752.1M3](/packages/friendsofcake-cakepdf)[cakephp/bake

Bake plugin for CakePHP

11211.2M156](/packages/cakephp-bake)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

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

The Queue plugin for CakePHP provides deferred task execution.

308850.3k14](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1862.1M26](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

129228.6k10](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

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