Spektrum SPM file parser in PHP