Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
sql query formatting
PHP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tests
README
index.php
sqlFormatter.php

README

Little tool meant to format a SQL query to be more readable.

Install the folder on a web server with PHP installed and call index.php in a browser.

Current features (see unit tests): 
- FROM and WHERE start on a new line
- 'SELECT', 'FROM' and 'WHERE' keywords are uppercased

But :
- would probably not handle well keywords inside strings yet
Something went wrong with that request. Please try again.