Your best bet is to follow a example like this
You may be able to then use hype for some of it in your adoption.
Or you could do as I say and use PHP to get the file directory list ( Which you still have to do in the example above ) and then create elements and append them to where you need them,
But doing it the latter way may be harder than the former.
Here is a basic example of the latter, I am using a hard coded file list (URLS) as an example list.
fileList.hype.zip (19.6 KB)