Registry / database / phpmyadmin-sql-parser

phpmyadmin-sql-parser

JSON →
library6.0.0phppackagistunverified

A validating SQL lexer and parser with a focus on MySQL dialect.

database
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

use PhpMyAdmin\SqlParser\Parser;

Parse a SQL query and output its statements.

<?php use PhpMyAdmin\SqlParser\Parser; $parser = new Parser('SELECT * FROM users'); print_r($parser->statements);
Debug
Known footguns
gotchaOnly supports MySQL dialect; may fail on other SQL variants.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
13 hits · last 30 days
gptbot
3
claudebot
3
mj12bot
1
ahrefsbot
1
Resources