PHP repository for documents