5

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?

3 Answers 3

4

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

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

Sign up to request clarification or add additional context in comments.

3 Comments

Brilliant, I will check it out. I knew it was only a matter of time before someone with more skill than me would come out with a good object to manipulate nested sets. I will check it out and see how it goes. Thanks
Damn, where was this link yesterday? Awesome! The forum on your site is pretty thoroughly spammed though.
This library will only work if you use a standard mysqli connection. PDO is not supported.
2

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

Comments

0

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

1 Comment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.