marcocesarato/sqlparser (packagist):  This class can parse SQL to get query type, tables, field values, etc..  It takes an string with a SQL statements and parses it to extract its different components.  Currently the class can extract the SQL query method, the names of the tables involved in the query and the field values that are passed as parameters. This parser is pretty light respect phpsqlparser or others php sql parser.
Keywords: class|database|mysql|parser|php|postrges|sql|sql-parser