jdorn / sql-formatter

A lightweight php class for formatting sql statements. Handles automatic indentation and syntax highlighting.
http://jdorn.github.com/sql-formatter/
MIT License
3.89k stars 186 forks source link

Please add PSR-4 compliance #91

Closed andig closed 7 years ago

stof commented 7 years ago

This package contains a single class. What is the issue about the current setup ?

andig commented 7 years ago

I maybe mistaken, but if I want to use this class from a reusable component I'd need to do some guessing on the location of the vendor folder for requiring the class. With Psr-4 I could just "use" it without the guesswork and without any overhead on the formatters side?

andig commented 7 years ago

My mistake- I can just use the class from global namespace.