GitHub - BaseMax/PHPAS: PHP Auto Style: A tool for format and beautify the style of PHP code with my style. (original) (raw)

PHP AS(Auto Style), PHP Beautifier

A tool for format and beautify the style of PHP code with my style.

Purpose

We waste our time to format the code. So it will be a fantastic tool.

Anyway, I hope this tool can help you for format a PHP code easily and fast.

Story

I developed this tool for myself, not for money, not for a special company.

Although it used in some software of a company in India.

Also it used as PHP snippet formate on PHPize.online

Main purpose

Demo

Left: Output, Right: Input

ScreenShot

Usage

' ' // 4 spaces (default Tab) ]; autoStyle=newAutoStyle(autoStyle = new AutoStyle(autoStyle=newAutoStyle(options); /* Format code from file */ print $AS->loadFile("test.php") ."\n"; /* Format code from string */ print $AS->loadString("b=b = b=v; $x = []; for ($i = 1;$i <= v;v;v;i++) { x[]=x[] = x[]=i; } for ($k = 3;$k <= ((floor($v - 1) / 2) + 1);$k++) { r=r = r=k; solve($x, v,v, v,b, k,k, k,r); } } ### Output [](#output) b=b=b=v; $x=[]; for($i=1;$i<=$v;$i++) { x[]=x[]=x[]=i; } for($k=3;$k<=((floor($v-1)/2)+1);$k++) { r=r=r=k; solve($x,$v,$b,$k,$r); } } --- ### Input [](#input-1) b=b = b=v; x=[];for(x = []; for (x=[];for(i = 1;$i <= v;v;v;i++) {$x[] = $i; } for ($k = 3;$k <= ((floor($v - 1) / 2) + 1);$k++) { r=r = r=k; solve($x, v,v, v,b, k,k, k,r); } } $str = "hello world!"; ### Output [](#output-1) b=b=b=v; $x=[]; for($i = 1;$i <= v;v;v;i++) { x[]=x[]=x[]=i; } for($k = 3;$k <= ((floor($v - 1) / 2) + 1);$k++) { r=r=r=k; solve($x, v,v, v,b, k,k, k,r); } } $str="hello world!"; ## Partnership and development [](#partnership-and-development) Please send issue or pull request if you found a bug or problem. Feel free to discuss or send pull... ## License [](#license) PHPBeautifier is licensed under the [GNU General Public License](/BaseMax/PHPAS/blob/master/LICENSE).