PHP Package: doctrine/sql-formatter
SQL formatter library for PHP developers providing formatting and pretty-printing capabilities for SQL queries.
Package Description
The SQL formatter library by Doctrine is a powerful tool designed to help PHP developers format and prettify SQL queries effortlessly. It offers a wide array of features including syntax highlighting, indentation, and beautification, making SQL code more readable and maintainable. With support for various SQL dialects, this library streamlines the process of writing and debugging SQL queries. Whether you are working on a small project or a complex database application, the SQL formatter library enhances your development workflow, ensuring efficient query management and improved code quality.
Download Latest Version: 1.5.2

Code Integration Example
Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/doctrine/sql-formatter/1.5.2/loader.php';
require_once 'libs/doctrine/lexer/3.0.1/loader.php';
require_once 'libs/doctrine/annotations/2.0.2/loader.php';
use Doctrine\SQLFormatter\Formatter;
use Doctrine\SQLFormatter\Lexer;
$obj = new Formatter();
echo '✅ Test OK: ' . get_class($obj);
?>
We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion
Ask questions, share tips, or report issues below.