PHPGrammar is a set of PHP classes for generating SRGS grammars in XML format. More info. on SRGS grammars can be found at http://www.w3.org/TR/2004/REC-speech-grammar-20040316/