| Recommend this page to a friend! |
| Info | Example | Screenshots | Reputation | Support forum | Blog | Links |
| Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
| 2025-07-28 (Less than 1 hour ago) | Not yet rated by the users | Total: 165 | All time: 8,917 This week: 54 | |||||
| Version | License | PHP version | Categories | |||
| phpas-php-auto-style 1.1 | GNU General Publi... | 5 | PHP 5, Tools, Parsers |
| Description | Author | |
This class can beautify PHP source code fixing its style. |
What is the best PHP get dominant color from image class?
Extract and organize scanned images by dominant color
<?php |
A tool for format and beautify the style of PHP code with my style.
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.
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
Left: Output, Right: Input

<?php
/Include Class/
include "PHPAS.php"
/Create Class Instance with default options/
$autoStyle = new AutoStyle();
/or with optional configuratoin/
$options = [
'identation' => ' ' // 4 spaces (default Tab)
];
$autoStyle = new AutoStyle($options);
/Format code from file/
print $AS->loadFile("test.php") ."\n";
/Format code from string/
print $AS->loadString("<?php\nprint 'hi';\n") ."\n";
| Method | Goal | | ------------------------- | ------------- | | setOptions($options) | Change formatter options... | | loadFile($fileName) | Auto Style, format a file and display output... | | loadString($codeString) | Auto Style, format a string code and display output... |
<?php
/inline comment/
for ($v = 7;$v <= 100 / 10;$v++) {
$b = $v;
$x = [];
for ($i = 1;$i <= $v;$i++) {
$x[] = $i;
}
for ($k = 3;$k <= ((floor($v - 1) / 2) + 1);$k++) {
$r = $k;
solve($x, $v, $b, $k, $r);
}
}
<?php
/inline comment/
for($v=7;$v<=100/10;$v++) {
$b=$v;
$x=[];
for($i=1;$i<=$v;$i++) {
$x[]=$i;
}
for($k=3;$k<=((floor($v-1)/2)+1);$k++) {
$r=$k;
solve($x,$v,$b,$k,$r);
}
}
<?php
/inline comment/
for ($v = 7;$v <= 100 / 10;$v++) { $b = $v; $x = []; for ($i = 1;$i <= $v;$i++) {$x[] = $i;
}
for ($k = 3;$k <= ((floor($v - 1) / 2) + 1);$k++) { $r = $k;
solve($x, $v, $b, $k, $r); } }
$str
=
"hello world!";
<?php
/inline comment/
for($v = 7;$v <= 100 / 10;$v++) {
$b=$v;
$x=[];
for($i = 1;$i <= $v;$i++) {
$x[]=$i;
}
for($k = 3;$k <= ((floor($v - 1) / 2) + 1);$k++) {
$r=$k;
solve($x, $v, $b, $k, $r);
}
}
$str="hello world!";
Please send issue or pull request if you found a bug or problem. Feel free to discuss or send pull...
PHPBeautifier is licensed under the GNU General Public License.
| Screenshots (1) | ||
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Example | Example script | |||
| Example | Example script | |||
| Lic. | License text | |||
| Class | Class source | |||
| Doc. | Documentation | |||
| / | tests |
| File | Role | Description | ||
|---|---|---|---|---|
| |
Example | Create Generates.php | ||
| |
Example | Example script | ||
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.