PHP-SQL-Parser is a pure PHP SQL (non validating) parser focusing on the MySQL dialect of SQL. The parsed representation returned by PHP-SQL-Parser is an associative array of important SQL sections and the information about the clauses in each of those sections. Since the MySQL SQL dialect is very close to SQL-92, this should work for most database applications that need a SQL parser. If using another database dialect, then you may want to change the reserved words.