Run this php script from the command line to see CLI syntax highlighting and formatting. It support Unix pipes or command line argument style.
php examples/cli.php "SELECT * FROM MyTable WHERE (id>5 AND \`name\` LIKE \"testing\");"
echo "SELECT * FROM MyTable WHERE (id>5 AND \`name\` LIKE \"testing\");" | php examples/cli.php
Warning: require_once(__DIR__/../lib/SqlFormatter.php) [function.require-once]: failed to open stream: No such file or directory in /home/babak/symfony/2/vendor/jdorn/sql-formatter/examples/cli.php on line 15
Fatal error: require_once() [function.require]: Failed opening required '__DIR__/../lib/SqlFormatter.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/babak/symfony/2/vendor/jdorn/sql-formatter/examples/cli.php on line 15