stew-eucen / fertile-forest
The fertile forest model for hierarchical data in a database on CakePHP plugin
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 1
Open Issues: 1
Type:cakephp-plugin
Requires
- php: >=5.6.3
- cakephp/cakephp: >=3.1.0
Requires (Dev)
This package is not auto-updated.
Last update: 2024-11-13 19:50:53 UTC
README
This plugin is an implementation of the Fertile Forest Model for CakePHP 3.x.
What's Fertile Forest Model?
We know four models for storing hierarchical data in a database.
- Adjacency List Model
- Path Emuneration Model
- Nested Sets Model (Nested Intervals Model)
- 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
You can learn more about Fertile Forest Model at:
About Plugin
This is the plugin for CakePHP 3.x. Core files are only two as:
- plugins/FertileForest/src/Model/Behavior/FertileForestBehavior.php
- plugins/FertileForest/src/Model/Entity/FertileForestTrait.php
This is minimum component to use Fertile Forest Model for your projects.
Environments
I confirmed this model operation by the environments:
- PHP 5.6.3
- CakePHP 3.1.0
- MySQL 5.6.23
Demo
This plugin contains demo pages for using FertileForestBehavior. You can experience Fertile Forest Model through the demo. Please see:
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.
https://github.com/StewEucen/fertile-forest-cakephp-plugin -
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