A basic but flexible tree data structure for php and a fluent tree builder implementation.