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 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 354 All time: 6,774 This week: 412Up
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
  Performance   Level  
Name: Abius X is available for providing paid consulting. Contact Abius X .
Classes: 4 packages by
Country: Iran Iran
Age: 31
All time rank: 118510 in Iran Iran
Week rank: 227 Up6 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:354
This week:0
All time:6,774
This week:412Up