PHPackages                             stew-eucen/fertile-forest - 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. [Database &amp; ORM](/categories/database)
4. /
5. stew-eucen/fertile-forest

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

stew-eucen/fertile-forest
=========================

The fertile forest model for hierarchical data in a database on CakePHP plugin

1.3.0(10y ago)6211[1 issues](https://github.com/StewEucen/fertile-forest-cakephp-plugin/issues)MITPHPPHP &gt;=5.6.3

Since Oct 3Pushed 10y ago2 watchersCompare

[ Source](https://github.com/StewEucen/fertile-forest-cakephp-plugin)[ Packagist](https://packagist.org/packages/stew-eucen/fertile-forest)[ Docs](http://lab.kochlein.com/FertileForest)[ RSS](/packages/stew-eucen-fertile-forest/feed)WikiDiscussions master Synced 1mo ago

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

Fertile Forest Model for Plugin of CakePHP 3.x
==============================================

[](#fertile-forest-model-for-plugin-of-cakephp-3x)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)

This plugin is an implementation of the Fertile Forest Model for CakePHP 3.x.

What's Fertile Forest Model?
----------------------------

[](#whats-fertile-forest-model)

We know four models for storing hierarchical data in a database.

1. Adjacency List Model
2. Path Emuneration Model
3. Nested Sets Model (Nested Intervals Model)
4. Closure Table Model

Fertile Forest Model (= FF Model) is the fifth Model for storing hierarchical data in database. Stew Eucen who is Japanese database engineer discovered it. FF Model has some excellent features than each conventional model.

Many libraries of framework use "Nested Sets Model" for storing hierarchical data in RDB. However, we got the new model now. I think that Nested Sets Model will be replaced by FF Model in Future. My plan is that CakePHP 4.x contains ForestBehavior.

More information
----------------

[](#more-information)

You can learn more about Fertile Forest Model at:

- [Fertile Forest Model (Official)](http://lab.kochlein.com/FertileForest)

About Plugin
------------

[](#about-plugin)

This is the plugin for CakePHP 3.x. Core files are only two as:

- [plugins/FertileForest/src/Model/Behavior/FertileForestBehavior.php](https://github.com/StewEucen/fertile-forest-cakephp-plugin/blob/master/src/Model/Behavior/FertileForestBehavior.php)
- [plugins/FertileForest/src/Model/Entity/FertileForestTrait.php](https://github.com/StewEucen/fertile-forest-cakephp-plugin/blob/master/src/Model/Entity/FertileForestTrait.php)

This is minimum component to use Fertile Forest Model for your projects.

Environments
------------

[](#environments)

I confirmed this model operation by the environments:

- PHP 5.6.3
- CakePHP 3.1.0
- MySQL 5.6.23

Demo
----

[](#demo)

This plugin contains demo pages for using FertileForestBehavior. You can experience Fertile Forest Model through the demo. Please see:

- [Usage of Demo](https://github.com/StewEucen/fertile-forest-cakephp-plugin/blob/master/DEMO.md)

How to contribute
-----------------

[](#how-to-contribute)

- If you find a bug, or want to contribute an enhancement or a fix, please send a pull request according to GitHub rules.

- Please post in your SNS:

```
We got the new model for storing hierarchical data in a database.
Stew Eucen did it!

```

Copyright © 2015 Stew Eucen, released under the MIT license

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

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

Every ~19 days

Total

5

Last Release

3795d ago

Major Versions

0.0.0 → 1.0.02015-10-12

### Community

Maintainers

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

---

Top Contributors

[![StewEucen](https://avatars.githubusercontent.com/u/12193670?v=4)](https://github.com/StewEucen "StewEucen (21 commits)")

---

Tags

cakephpFertileForestStewEucen

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stew-eucen-fertile-forest/health.svg)

```
[![Health](https://phpackages.com/badges/stew-eucen-fertile-forest/health.svg)](https://phpackages.com/packages/stew-eucen-fertile-forest)
```

###  Alternatives

[dereuromark/cakephp-databaselog

A CakePHP plugin for storing and viewing application logs in the database

44165.0k2](/packages/dereuromark-cakephp-databaselog)[pgbi/cakephp3-soft-delete

SoftDelete plugin for CakePHP

87291.9k](/packages/pgbi-cakephp3-soft-delete)

PHPackages © 2026

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