PHP Package: phpmyadmin/sql-parser

PHP SQL parser library for efficient parsing and manipulation of SQL queries, supporting multiple SQL dialects and query structures.

Current Version: 5.11.0
Last Updated: 2025-02-22
PHP Requirement: ^7.2 || ^8.0
Dependencies: None

Package Description

The SQL Parser library by phpMyAdmin is a powerful tool designed to parse and analyze SQL queries efficiently. It offers comprehensive parsing capabilities for various SQL dialects and query structures, enabling developers to extract valuable information from complex SQL statements. With its intuitive interface and robust functionality, this library simplifies the process of working with SQL queries, making it an essential component for database management and query optimization tasks.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 5.11.0

Download Download v5.11.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/phpmyadmin/sql-parser/5.11.0/loader.php';
require_once 'libs/phpmyadmin/sql-parser-vendor/dependency1/{lib_version}/loader.php';
require_once 'libs/phpmyadmin/sql-parser-vendor/dependency2/{lib_version}/loader.php';

use phpmyadmin\sqlparser\Parser;
use phpmyadmin\sqlparser\Query;

$obj = new Parser();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.