PHPackages                             liquipedia/sqllint - 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. [Database &amp; ORM](/categories/database)
4. /
5. liquipedia/sqllint

ActiveLibrary[Database &amp; ORM](/categories/database)

liquipedia/sqllint
==================

A thin wrapper around the SqlParser from the phpMyAdmin project which can be used to lint any amount of sql files from the command line.

1.2.1(4y ago)25.1kGPL-2.0-or-laterPHP

Since Mar 4Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Liquipedia/SqlLint)[ Packagist](https://packagist.org/packages/liquipedia/sqllint)[ RSS](/packages/liquipedia-sqllint/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (6)Versions (11)Used By (0)

SqlLint
=======

[](#sqllint)

[![Code Style](https://github.com/Liquipedia/SqlLint/workflows/Code%20Style/badge.svg)](https://github.com/Liquipedia/SqlLint/workflows/Code%20Style/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/515e7c93fecc8b5303cb122a69aaf5e621af2b3db433e93fa88fa9c488b6da82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6971756970656469612f73716c6c696e74)](https://packagist.org/packages/liquipedia/sqllint)[![Latest Stable Version](https://camo.githubusercontent.com/9a1394528a3346fe9fa2d26befe33b8747d0f06ac89390c2800cf4eaf78e8e07/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6971756970656469612f73716c6c696e74)](https://packagist.org/packages/liquipedia/sqllint)[![License](https://camo.githubusercontent.com/2e1b40cd90f6e5b44642e29dc0567741e8cfabad52f9f63e0117ef5c0b36bb32/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6971756970656469612f73716c6c696e74)](https://packagist.org/packages/liquipedia/sqllint)

This is a thin wrapper around the SqlParser from the [phpMyAdmin project](https://github.com/phpmyadmin/sql-parser) which can be used to lint any amount of sql files from the command line.

Installation
------------

[](#installation)

Please use [Composer](https://getcomposer.org/) to install:

```
composer require liquipedia/sqllint --dev
```

Usage
-----

[](#usage)

### Command line utility

[](#command-line-utility)

```
./vendor/bin/sqllint
```

```
./vendor/bin/sqllint --report=junit > report-junit.xml
```

### Via composer script

[](#via-composer-script)

Add this to your composer.json

```
{
	"require-dev": {
		"liquipedia/sqllint": "*"
	},
	"scripts": {
		"sqllint": [
			"sqllint"
		],
		"sqllint-junit": [
			"sqllint --report=junit > report-junit.xml"
		]
	}
}
```

and run

```
composer sqllint
```

### Parameter

[](#parameter)

To check out parameters, please refer to the `src/Parameters.php` file or use the `--help` parameter.

### `.sqllint.json`

[](#sqllintjson)

Parameters for SqlLint can optionally also be provided via a `.sqllint.json` file in the project root. Parameters passed via command line always have precedence over the parameters set in `.sqllint.json`.

Example:

```
{
	"report": "junit"
}
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Every ~52 days

Recently: every ~14 days

Total

10

Last Release

1478d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/edd280ac2b26558678cb775a91ea9d04604007ac2289dabb6e1030facba363ed?d=identicon)[Liquipedia](/maintainers/Liquipedia)

---

Top Contributors

[![FO-nTTaX](https://avatars.githubusercontent.com/u/3266537?v=4)](https://github.com/FO-nTTaX "FO-nTTaX (29 commits)")

---

Tags

lintlinterlintingmysqlsqlsqllintjunit

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/liquipedia-sqllint/health.svg)

```
[![Health](https://phpackages.com/badges/liquipedia-sqllint/health.svg)](https://phpackages.com/packages/liquipedia-sqllint)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k605.0M6.8k](/packages/doctrine-dbal)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[doctrine/sql-formatter

a PHP SQL highlighting library

1.9k181.8M112](/packages/doctrine-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[phpmyadmin/sql-parser

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

48252.2M78](/packages/phpmyadmin-sql-parser)[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k6.0M77](/packages/ifsnop-mysqldump-php)

PHPackages © 2026

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