bonsai | Closure Table '' design pattern
kandi X-RAY | bonsai Summary
kandi X-RAY | bonsai Summary
bonsai is a PHP library. bonsai has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.
This package is an implementation of the "Closure Table" design pattern for Laravel 6 and MySQL. This pattern allows for faster querying of tree-like structures stored in a relational database. It is an alternative to nested sets. :warning: Bonsai was originally part of the Smoothie package. If you're using Laravel 5.x, you should install Smoothie instead of Bonsai. If you were a Smoothie user and are migrating from Laravel 5.x to Laravel 6.x, please refer to this section.
This package is an implementation of the "Closure Table" design pattern for Laravel 6 and MySQL. This pattern allows for faster querying of tree-like structures stored in a relational database. It is an alternative to nested sets. :warning: Bonsai was originally part of the Smoothie package. If you're using Laravel 5.x, you should install Smoothie instead of Bonsai. If you were a Smoothie user and are migrating from Laravel 5.x to Laravel 6.x, please refer to this section.
Support
Quality
Security
License
Reuse
Support
bonsai has a low active ecosystem.
It has 2 star(s) with 0 fork(s). There are 1 watchers for this library.
It had no major release in the last 12 months.
bonsai has no issues reported. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of bonsai is v1.0.0-RC2
Quality
bonsai has no bugs reported.
Security
bonsai has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
bonsai does not have a standard license declared.
Check the repository for any license declaration and review the terms closely.
Without a license, all rights are reserved, and you cannot use the library in your applications.
Reuse
bonsai releases are available to install and integrate.
Installation instructions, examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of bonsai
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of bonsai
bonsai Key Features
No Key Features are available at this moment for bonsai.
bonsai Examples and Code Snippets
No Code Snippets are available at this moment for bonsai.
Community Discussions
No Community Discussions are available at this moment for bonsai.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install bonsai
First, your main table needs a parent_id column (the name can be configured). This column is the one that holds the canonical data: the closures are merely a duplication of that information. Then, have your model implement the Baril\Bonsai\Concerns\BelongsToTree trait.
$parentForeignKey: name of the self-referencing foreign key in the main table (defaults to parent_id),
$closureTable: name of the closure table (defaults to the snake-cased model name suffixed with _tree, eg. tag_tree).
$parentForeignKey: name of the self-referencing foreign key in the main table (defaults to parent_id),
$closureTable: name of the closure table (defaults to the snake-cased model name suffixed with _tree, eg. tag_tree).
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page