doctrine/sql-formatter
a PHP SQL highlighting library
1.5.4
192M downloads/mo
#208 most downloaded on composer
doctrine/sql-formatter
What this package is like to depend on
Last release 6 months ago
08 Feb 2026
Release timing varies
gaps range from 5 weeks to 1.3 years
Most releases are documented
notes for 10 of 15 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
15 releases · first in 2020
2 releases in the last 12 months
see the full history below
Release timeline
15 releases · Apr 2020 to Feb 2026Releases
latest 15-
1.5.408 Feb 2026Release notes
Open source →Release Notes for 1.5.4
1.5.x bugfix release (patch)
1.5.4
- Total issues resolved: 0
- Total pull requests resolved: 7
- Total contributors: 3
Improvement
- 173: Treat ~* as operator thanks to @vrana
Static Analysis
- 172: Fix PHPStan error thanks to @derrabus
CI
- 171: Bump doctrine/.github/.github/workflows/phpstan.yml from 12.2.0 to 13.1.0 thanks to @dependabot[bot]
- 169: Bump doctrine/.github/.github/workflows/coding-standards.yml from 12.2.0 to 13.1.0 thanks to @dependabot[bot]
- 168: Bump doctrine/.github/.github/workflows/continuous-integration.yml from 13.0.0 to 13.1.0 thanks to @dependabot[bot]
- 163: Bump doctrine/.github from 12.1.0 to 12.2.0 thanks to @dependabot[bot]
- 162: Bump doctrine/.github from 12.0.0 to 12.1.0 thanks to @dependabot[bot]
-
1.5.326 Oct 2025Release notes
Open source →Release Notes for 1.5.3
1.5.x bugfix release (patch)
1.5.3
- Total issues resolved: 0
- Total pull requests resolved: 5
- Total contributors: 3
Bugfixes
- 157: Treat #> as operator thanks to @vrana
CI
- 161: Bump dev tools and CI workflows thanks to @derrabus
- 159: Bump doctrine/.github from 8.0.0 to 10.1.0 thanks to @dependabot[bot]
- 154: Bump doctrine/.github from 7.2.2 to 7.3.0 thanks to @dependabot[bot]
- 151: Bump doctrine/.github from 7.1.0 to 7.2.0 thanks to @dependabot[bot]
-
1.5.224 Jan 2025Release notes
Open source →Release Notes for 1.5.2
1.5.x bugfix release (patch)
1.5.2
- Total issues resolved: 0
- Total pull requests resolved: 5
- Total contributors: 3
Bug
CI
- 148: Bump doctrine/.github from 6.0.0 to 7.1.0 thanks to @dependabot[bot]
- 146: Bump doctrine/.github from 5.3.0 to 6.0.0 thanks to @dependabot[bot]
- 145: Bump doctrine/.github from 5.2.0 to 5.3.0 thanks to @dependabot[bot]
- 147: Drop Psalm thanks to @greg0ire
-
1.5.121 Oct 2024Release notes
Open source →Release Notes for 1.5.1
1.5.x bugfix release (patch)
1.5.1
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 2
Bugfixes
CI
- 144: Bump doctrine/.github from 5.1.0 to 5.2.0 thanks to @dependabot[bot]
-
1.5.011 Sep 2024Release notes
Open source →Release Notes for 1.5.0
Feature release (minor)
1.5.0
- Total issues resolved: 0
- Total pull requests resolved: 10
- Total contributors: 3
enhancement
- 131: Improve tokenizer regex matching thanks to @mvorisek
- 125: Improve token type phpdoc thanks to @mvorisek
- 124: Add extra new line between separate queries thanks to @mvorisek
- 119: Do not reallocate whole input string when matching next token thanks to @mvorisek
- 115: Dedup indent level decrease code thanks to @mvorisek
- 112: Use constants for the indentation block type thanks to @goetas
- 101: Implement CASE WHEN format thanks to @mvorisek
CI
-
138: Bump doctrine/.github from 5.0.1 to 5.1.0 thanks to @dependabot[bot]
-
132: Build optimized regex from string list thanks to @mvorisek
-
1.4.105 Aug 2024Release notes
Open source →Release Notes for 1.4.1
1.4.x bugfix release (patch)
1.4.1
- Total issues resolved: 0
- Total pull requests resolved: 11
- Total contributors: 3
bugfixes
- 134: Added straight_join to $reservedNewline thanks to @MaximilianKresse
- 120: Fix unclosed block comment tokenize thanks to @mvorisek
- 117: Make sure all internal lists do not rely on keywords order thanks to @mvorisek
- 110: Fix semicolon must decrease special indentation level thanks to @mvorisek
- 107: Make sure keywords are single upper words thanks to @mvorisek
- 106: Add all "type reserved" MySQL keywords thanks to @mvorisek
- 104: Revert uppercasing keywords in tokenizer thanks to @mvorisek
- 102: Parse "NOW()" like any other function thanks to @mvorisek
Test Suite
-
1.4.008 May 2024Release notes
Open source →Release Notes for 1.4.0
Feature release (minor)
1.4.0
- Total issues resolved: 0
- Total pull requests resolved: 3
- Total contributors: 2
Enhancement
- 100: Modernize codebase for PHP 8 thanks to @derrabus
CI
- 99: Bump actions/checkout from 2 to 4 thanks to @dependabot[bot]
- 98: Bump doctrine/.github from 1.4.1 to 5.0.1 thanks to @dependabot[bot]
-
1.3.006 May 2024Release notes
Open source →Release Notes for 1.3.0
Feature release (minor)
1.3.0
- Total issues resolved: 0
- Total pull requests resolved: 0
- Total contributors: 0
Dependencies
- support for PHP 7.1
-
1.2.016 Aug 2023Release notes
Open source →Release Notes for 1.2.0
Feature release (minor)
1.2.0
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 2
enhancement
- 93: Force uppercase SQL keywords thanks to @rinu
- 88: Add support for PostgreSQL cast operator thanks to @forrest79
-
1.1.323 May 2022Release notes
Open source →Release Notes for 1.1.3
1.1.3
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
enhancement
-
1.1.205 Nov 2021Nothing published for this version
-
1.1.130 Jul 2020Nothing published for this version
-
1.1.029 May 2020Nothing published for this version
-
1.0.122 May 2020Nothing published for this version
-
1.0.027 Apr 2020Nothing published for this version