50%

PHP Beautifier

PHP Formatter


PHP Formatter helps to format unformatted or ugly PHP data and helps to save and share PHP. It helps to indent and do the php code alignment.

What can you do with PHP Formatter?

  • It helps to beautify your PHP. It will generate Clean up PHP code.
  • This tool allows loading the PHP URL to beautify. Click on the URL button, Enter URL and Submit.
  • This tool supports loading the PHP File to beautify. Click on the Upload button and select File.
  • It beautify pure PHP framework file such as Laravel, CodeIgniter, YII, CakePHP, Symfony and many more one file at a time.
  • PHP Code Beautifier Online works well on Windows, MAC, Linux, Chrome, Firefox, Edge, and Safari.

Example of PHP

PHP data Try it.

<?php
class CarInsurance
{
    public $id;
    public $name;

    public function __construct($id, $name)
    {
        $this->id = $id;
        $this->name = $name;
    }
    public function message()
    {
        return "My Car Insurance's ID is " .
            $this->id ." and Name is " . $this->name . "!";
    }
}

$myCarInsurance = new CarInsurance("1", "State Farm");
echo $myCarInsurance->message();

echo "<br>";

$myCarInsurance = new CarInsurance("2", "Geico");
echo $myCarInsurance->message();

?>

For Advanced Users

PHP External URL

Load PHP External URL in Browser URL like this https://codebeautify.org/php-beautifier?url=external-url

https://codebeautify.org/php-beautifier?url=https://gist.githubusercontent.com/cbmgit/cdee7283351193a689f89d6993d1307a/raw/CarInsurance.php
PHP Data as Parameter

Load PHP Data in Browser URL input like this https://codebeautify.org/php-beautifier?input=inputdata

https://codebeautify.org/php-beautifier?input="Hello World!";echo "How areyou?";?>

Related Tools


Recently visited pages


Tags