Query a collection of text files like a document database in PHP.