Ross ROSS = Recommend OSS · open-source software intelligence for agents

jdorn/sql-formatter

A lightweight php class for formatting sql statements. Handles automatic indentation and syntax highlighting. observed · 2026-08-28

github.com/jdorn/sql-formatter · homepage · HTML · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

23/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 5238
  • days_rel: n/a
  • days_push: 1196
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

3846 stars · 184 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

A lightweight PHP class that formats SQL statements with automatic indentation, line breaks, and HTML syntax highlighting. It also provides methods to compress queries and strip comments.

Use cases

  • format sql queries for debugging
  • pretty print sql statements in php
  • add syntax highlighting to sql output
  • compress sql queries for the command line
  • remove comments from sql strings
  • log readable sql queries

When to choose

  • you need a small, dependency-free PHP library to format or highlight SQL
  • you want to display auto-generated SQL in HTML for debugging
  • you need to minify or strip comments from SQL queries

When to avoid

  • you need SQL parsing, validation, or execution rather than formatting
  • you are not working in PHP
  • you need an actively developed formatter with support for many SQL dialects

Facets

library · maturity maintenance

formatter developer-tools databases developer-tools php sql syntax-highlighting pretty-printing

1 source

Member repositories

RepositoryRoleHealth v2
jdorn/sql-formattermain23

For agents

markdown · JSON · MCP: product_card(name="jdorn/sql-formatter")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem