PHPackages                             novasto/sql-fixer - 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. novasto/sql-fixer

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

novasto/sql-fixer
=================

lint SQL in \*.php \*.sql files.

v1.0.2(6y ago)011MITPHPPHP ^7.2

Since Mar 3Pushed 6y ago2 watchersCompare

[ Source](https://github.com/novasto/sql-fixer)[ Packagist](https://packagist.org/packages/novasto/sql-fixer)[ RSS](/packages/novasto-sql-fixer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (4)Used By (0)

SqlFixer
========

[](#sqlfixer)

A linter for sql statements in \*.php, \*.sql.

Usage
=====

[](#usage)

Sample usage:

```
./vender/bin/sql-fixer [--dry-run] [file or dir...]
```

In PHP file: The SqlFixer will fix statements in SQL heredoc.

In SQL file: The SqlFixer will fix whole file.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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 ~0 days

Total

3

Last Release

2266d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/36e0b5d57ccc044013dd01edf285798bb494e55735c26dcafd0a34863a8328c1?d=identicon)[novasto](/maintainers/novasto)

---

Tags

sqlformatlint

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/novasto-sql-fixer/health.svg)

```
[![Health](https://phpackages.com/badges/novasto-sql-fixer/health.svg)](https://phpackages.com/packages/novasto-sql-fixer)
```

###  Alternatives

[doctrine/dbal

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

9.7k578.4M5.6k](/packages/doctrine-dbal)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[doctrine/sql-formatter

a PHP SQL highlighting library

1.9k166.0M85](/packages/doctrine-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[phpmyadmin/sql-parser

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

47750.4M55](/packages/phpmyadmin-sql-parser)[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k5.5M69](/packages/ifsnop-mysqldump-php)

PHPackages © 2026

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