PHPackages                             liquiddesign/php-sql-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. liquiddesign/php-sql-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

liquiddesign/php-sql-parser
===========================

SQL parsing tools for PHP, fork of soundintheory/php-sql-parser

v1.0.8(4y ago)0861BSD-2-ClausePHPPHP &gt;=5.3.3

Since Jan 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/liquiddesign/php-sql-parser)[ Packagist](https://packagist.org/packages/liquiddesign/php-sql-parser)[ RSS](/packages/liquiddesign-php-sql-parser/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHP SQL Parser
--------------

[](#php-sql-parser)

A fork of There were several issues in PHPSQLCreator and they are fixed now. Creator now support having clause and many more.

A Parser for mysql-ish queries that can represent a query as an array.

Fixes and improvements of soundintheory/php-sql-parser
------------------------------------------------------

[](#fixes-and-improvements-of-soundintheoryphp-sql-parser)

- fixed match against
- implements match against in SELECT
- fixed HAVING clause
- fixed calling function in function in SELECT and WHERE
- some other minor fixes

Usage
-----

[](#usage)

### Use your PSR-0 Compatible Autoloader or the sample one provided in example.php

[](#use-your-psr-0-compatible-autoloader-or-the-sample-one-provided-in-examplephp)

Improvements/Feedback.
----------------------

[](#improvementsfeedback)

Please send them to me, or send a pull request. I will honor every reasonable request, where reasonable usually means elegance, simplicity and bug fixes. Suggestions for improvement are welcome, though you'll see them sooner if you write them. I will take unit tests as well!

License
-------

[](#license)

PHPSQLParser is licensed under The BSD 2-Clause License, available online here:

/\*\*

- A pure PHP SQL (non validating) parser w/ focus on MySQL dialect of SQL
-
- Copyright (c) 2010-2012, Justin Swanhart
- with contributions by André Rothe &lt;, &gt;
- with contributions by Dan Vande More
-
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- - Redistributions of source code must retain the above copyright notice,
- ```
    this list of conditions and the following disclaimer.

    ```
- - Redistributions in binary form must reproduce the above copyright notice,
- ```
    this list of conditions and the following disclaimer in the documentation

    ```
- ```
    and/or other materials provided with the distribution.

    ```
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
- EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
- SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
- DAMAGE. \*/

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1617d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2a45fb465d05cafa46a49d77995ae65b2d7eef3c9c94f91367d56442173236a?d=identicon)[info@lqd.cz](/maintainers/info@lqd.cz)

---

Top Contributors

[![oldrichpospisilik](https://avatars.githubusercontent.com/u/28293297?v=4)](https://github.com/oldrichpospisilik "oldrichpospisilik (1 commits)")

### Embed Badge

![Health badge](/badges/liquiddesign-php-sql-parser/health.svg)

```
[![Health](https://phpackages.com/badges/liquiddesign-php-sql-parser/health.svg)](https://phpackages.com/packages/liquiddesign-php-sql-parser)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M45](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

108.5k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
