It was asked some time ago, but anyway, there is a good package, for many languages, here: https://sublime.wbond.net/packages/CodeFormatter
Answer from Surt on Stack OverflowPackage Control
packagecontrol.io โบ packages โบ PhpBeautifier
PhpBeautifier - Packages - Package Control
This is a Sublime Text 2 plugin allowing you to format your PHP code. It uses php beautifier.
Videos
01:25
How to beautify code in sublime text 3? - YouTube
03:52
Best Package For Programmers | HTML Formatter in Sublime Text 3 ...
05:59
php beautify sublime - YouTube
01:54
sublime beautify php and html code - YouTube
How to beautify the html code in sublime text 3 - YouTube
Reddit
reddit.com โบ r/sublimetext โบ is there a currently working plugin for php code beautifying?
r/SublimeText on Reddit: Is there a currently working plugin for php code beautifying?
April 16, 2023 -
- CodeFormatter: (abandoned, throws errors)
- JSPrettier - doesn't support php
- Others I've tried just either don't work or can't find them in package control?
Do any of you have a php code beautifier plugin that works? Preferably an option to beautify on save. Thank you!
GitHub
github.com โบ SublimeText โบ PhpBeautifier
GitHub - SublimeText/PhpBeautifier: Pear Php_beautifier plugin for Sublime Text 2
Starred by 66 users
Forked by 17 users
Languages ย Python
GitHub
github.com โบ welovewordpress โบ SublimePhpTidy
GitHub - welovewordpress/SublimePhpTidy: Plugin for Sublime Text 2 to format PHP code to meet the WordPress Coding Standards using a modified version of phptidy
Starred by 110 users
Forked by 30 users
Languages ย PHP 97.5% | Python 2.5%
GitHub
github.com โบ Ennosuke โบ PHP-Codebeautifier
GitHub - Ennosuke/PHP-Codebeautifier: This is a plugin for Sublime Text 3 that gives the option to run the phpcbf
This is a plugin for Sublime Text 3 that gives the option to run the phpcbf - Ennosuke/PHP-Codebeautifier
Starred by 13 users
Forked by 7 users
Languages ย JavaScript 65.4% | Python 34.6%
Package Control
packagecontrol.io โบ packages โบ PHP Codebeautifier
PHP Codebeautifier - Packages - Package Control
You need the PHP Codesniffer more precise the code beautifier from them. Clone this repo into your Packages folder of Sublime Text. If phpcbf is in your path you don't need to do much setup.
GitHub
github.com โบ driade โบ phpfmt8
GitHub - driade/phpfmt8: PHP formatter for Sublime Text 4, with PHP 8 support. Core for vscode/cursor/windsurf phpfmt plugin
Starred by 75 users
Forked by 5 users
Languages ย PHP 85.7% | Python 13.4%
Sublime Forum
forum.sublimetext.com โบ t โบ req-code-formater-beautifier โบ 3729
Req.: Code Formater/beautifier - Plugin Development - Sublime Forum
January 9, 2012 - Code formating for: HTML CSS JS PHP โฆ other langs. later ๐ I think this future in Sublime Text 2 can bring alot of people because APP developers mostly use Microsoft Visual Strudio and other developers (web, scripting โฆ) editors like this. I know code is indented when in new line but ...
Sublime Forum
forum.sublimetext.com โบ t โบ code-beautify โบ 33359
Code Beautify - Technical Support - Sublime Forum
November 14, 2017 - I have mixed code of php, html, css and js. How can I make them beautiful in Sublime Text 3 ? Thanks
GitHub
github.com โบ akalongman โบ sublimetext-codeformatter
GitHub - akalongman/sublimetext-codeformatter: Code Formatter plugin for ST2/ST3
Starred by 772 users
Forked by 128 users
Languages ย Python 90.8% | JavaScript 8.5%
Package Control
packagecontrol.io โบ packages โบ phpfmt
phpfmt - Packages - Package Control
PHP formatter for Sublime Text 4, with PHP 8 support. Core for vscode/cursor/windsurf phpfmt plugin ... PHPFmt is a PHP code formatter tailored for Sublime Text 4 with full support for PHP 8.x.
Sublime Forum
forum.sublimetext.com โบ t โบ neaten-up-my-php-auto-format โบ 26001
Neaten up my PHP - Auto Format - Technical Support - Sublime Forum
February 9, 2017 - Hey guys, I am new to Sublime text and so far I am loving it. I have set it up so that I can auto format css, html and js. But for love or money I cant figure out how to do it for PHP. I am using sublime text 3 on a mโฆ
Sublime Forum
forum.sublimetext.com โบ t โบ php-beautifier-error โบ 5223
PHP Beautifier error - General Discussion - Sublime Forum
April 2, 2012 - Hello, I found Sublime Package Control. Then installed PHP Beautifier. But the choice of Format: PHP error occurs in the console: Traceback (most recent call last): File ".\sublime_plugin.py", line 350, in run_ File ".\php_beautifier.py", line 14, in run File ".\subprocess.py", line 633, in ...
Package Control
packagecontrol.io โบ packages โบ CodeFormatter
CodeFormatter - Packages - Package Control
CodeFormatter is a Sublime Text 2/3 plugin that supports format (beautify) source code.