lianhechx/laravel-nestedset

Nested Set Model for Laravel
34
Install
composer require lianhechx/laravel-nestedset
Latest Version:0.1.0
PHP:>=5.5.9
License:MIT
Last Updated:Jan 24, 2017
Links: GitHub  ·  Packagist
Maintainer: lianhechx

This is a Laravel package for working with trees in relational databases.

What are nested sets?

Nested sets or Nested Set Model is a way to effectively store hierarchical data in a relational table. From wikipedia:

The nested set model is to number the nodes according to a tree traversal, which visits each node twice, assigning numbers in the order of visiting, and at both visits. This leaves two numbers for each node, which are stored as two attributes. Querying becomes inexpensive: hierarchy membership can be tested by comparing these numbers. Updating requires renumbering and is therefore expensive.

Related Packages

techcon/nestedsets

Package for manipuate nestedsets in Laravel without Eloquent ORM

9 1
kalnoy/nestedset

Nested Set Model for Laravel 5.7 and up

14,537,612 3,804
laravel-doctrine/fluent

A fluent PHP mapping driver for Doctrine2.

450,621 43
laravel/database

Get Laravel database for your non laravel projects. Built on top of illuminate/d...

36,105 90
laravel-doctrine/migrations

Doctrine Migrations for Laravel

2,913,809 78