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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 362 All time: 6,757 This week: 279Up
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 is available for providing paid consulting. Contact Abius X .
Classes: 4 packages by
Country: Iran Iran
Age: 32
All time rank: 117810 in Iran Iran
Week rank: 257 Up8 in Iran Iran Up
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:362
This week:0
All time:6,757
This week:279Up

For more information send a message to info at phpclasses dot org.