PHP Code Formatter & Beautifier

🎨 Format and beautify your PHP code with proper indentation, PSR standards compliance, and syntax highlighting.

Lines: 0 Characters: 0
Lines: 0 Characters: 0

Formatting Options

📚 PSR Standards

  • PSR-2: Coding Style Guide (deprecated)
  • PSR-12: Extended Coding Style (recommended)
  • WordPress: WordPress coding standards
  • Laravel: Laravel framework style

🔍 Formatting Rules

  • Consistent indentation (spaces or tabs)
  • Proper bracket placement
  • Space after control structures
  • Blank lines between methods

💡 Quick Example

Before:

<?php
class Example{
function test($param){
if($param==true){echo "Hello";}
}
}

After (PSR-12):

<?php

class Example
{
    public function test($param)
    {
        if ($param == true) {
            echo "Hello";
        }
    }
}