CsvToTextGrid is a PHP class that lets you to convert a Csv file into a TextGrid, both in the long or short format.