PHP class for listing directories recursively, with different output options.