Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to batch "pretty" format PHP files in a folder? [closed]

I have a folder of PHP files. The source code to these files is compressed into a few lines with no line breaks or other conventional formatting and is extremely hard to read.

I have found several online tools to make the source readable, but they all do this is one by one: http://thephppro.com/tools/beautify.php http://www.prettyprinter.de/

How to format source code in batch? Is there any way to accomplish the process of making a folder/subfolder of PHP source code readable more efficiently? Is there any IDE that will format files in batch mode, or another php script/cli tool that I am unaware of which can perform this operation?

like image 769
timelf123 Avatar asked Oct 08 '22 06:10

timelf123


1 Answers

Have you tried PHP Beautifier?

like image 131
DCoder Avatar answered Oct 12 '22 19:10

DCoder