PHP Classes
elePHPant
Icontem

Quick PHP MySQL Parser: Parse MySQL queries into tokens

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-03-30 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 306 All time: 6,929 This week: 1,095Up
Version License PHP version Categories
mysql-lexer 1.0GNU Lesser Genera...5.0PHP 5, Databases, Parsers
Description Author

This class can parse MySQL queries into tokens.

It can take a given SQL query and parses it to break it down into an array of tokens that can be symbols, functions, comments, etc..

The class can also reformat the query separating the tokens by a single space.

It can also reformat the query replacing the tokens by common strings, so two queries can be compared to determine if they are similar even if they differ in literal values.

Innovation Award
PHP Programming Innovation award nominee
April 2015
Number 6


Prize: SourceGuarding PHP encoder tool
Parsing SQL queries can be useful for applications that need to identify the types of queries and the parameters that they take.

This class can parse SQL queries, so it can be used to reformat different queries to determine if they are similar, even if they differ in literal values.

Manuel Lemos
Picture of Abius X
  Performance   Level  
Name: Abius X <contact>
Classes: 4 packages by
Country: Iran Iran
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

Screenshots  
  • screenshot.png
  Files folder image Files  
File Role Description
Plain text file QuickMySQLLexer.php Class The lexer class
Accessible without login Plain text file example.php Example Example usage code

 Version Control Unique User Downloads Download Rankings  
 0%
Total:306
This week:0
All time:6,929
This week:1,095Up