How to Implement a PHP Grammar Checker to Validate a String that Follow Certain Grammar Rules By Manuel Lemos Some applications need to parse a text that follows specific grammar rules.

This package allows developers to dynamically create their own grammar rules using classes that implement simple grammar rules.

Then the package can validate a string to check if it complies with the grammar rules defined dynamically.