andrew
andrew

Reputation: 5176

Nested Set Model Php library

Hi I need to use the nested set model to mange product categories on my site. Does anyoune know of some good pre-built PHP libraries for handling nested sets in MySQL?

Upvotes: 5

Views: 8440

Answers (3)

Riccardo Galli
Riccardo Galli

Reputation: 12925

You could try "Baobab", it's a library I recently released.

http://www.sideralis.org/baobab/

Upvotes: 4

wimvds
wimvds

Reputation: 12850

You could use a PHP ORM solution like Propel or Doctrine, they both support nested sets.

Upvotes: 0

Luke Stevenson
Luke Stevenson

Reputation: 10341

It's a bit old, and could do with some refactoring, but I found a PHP Class "dbtree" on PHPClasses.org, which seems to do a fair job of it - http://www.phpclasses.org/package/2547-PHP-Manipulate-database-records-in-hierarchical-trees.html

Upvotes: 2

Related Questions