PHP Package: doctrine/sql-formatter

A PHP library for formatting SQL queries with ease and readability.

Current Version: 1.5.2
Last Updated: 2025-01-24
PHP Requirement: >=7.1
Dependencies: doctrine/dbal, symfony/console
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

SQL Formatter is a powerful PHP library that provides a simple yet effective way to format SQL queries for better readability and maintainability. It offers various features such as syntax highlighting, indentation, and keyword capitalization. With SQL Formatter, developers can easily enhance the structure of their SQL code, making it more organized and comprehensible.

🔗 View on GitHub

Download Latest Version: 1.5.2

Download Download v1.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/autoload.php';

use Doctrine\SqlFormatter\Formatter;
use Doctrine\DBAL\Connection;
use Symfony\Component\Console\Command;


$obj = new Doctrine\SqlFormatter\Formatter();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.