2006-05-15 (·î)
¢£ PHP ¤Î¥½¡¼¥¹¥³¡¼¥É¤ÎÀ°·Á
Àνñ¤¤¤¿ PHP ¤Î¥¹¥¯¥ê¥×¥È¤ò¡¢ PEAR ¤Î¥³¡¼¥Ç¥£¥ó¥°µ¬Ìó¤Ë±è¤Ã¤¿·Á¤ËÀ°·Á¤·¤¿¤¤¡£ ¤½¤¦»×¤Ã¤Æ¡¢¤¤¤¯¤Ä¤«¤Î¥½¥Õ¥È¤ò»î¤·¤Æ¤ß¤¿¡£ ¥·¥ó¥×¥ë¤ÊÎã¤È¤·¤Æ¡¢¤³¤ó¤Ê test.php ¤òÀ°·Á¤µ¤»¤Æ¤ß¤ë¡£
<?
if($a==TRUE){
echo "TRUE";
}
else {
echo "FALSE";
}
?>
PHP_Beautifier
°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¡¢¥¤¥ó¥¹¥È¡¼¥ë¡£
# pear config-set preferred_state beta # pear install --alldeps PHP_Beautifier
¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤é php_beautifier ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¡£
php_beautifier -l "Pear()" test.php
¤³¤ó¤Ê½ÐÎÏ·ë²Ì¤¬ÆÀ¤é¤ì¤¿¡£
<?
if ($a == TRUE) {
echo "TRUE";
} else {
echo "FALSE";
}
?>
¡Ä¤Ê¤ó¤À¡¢¤³¤ì¤Ï¡© ¤¢¤Á¤³¤Á¤Ë²þ¹Ô¤¬Æþ¤Ã¤Æ¡¢¥¹¥«¥¹¥«¤Î¥³¡¼¥É¤Ë¤Ê¤ë¡£ ¥Þ¥Ë¥å¥¢¥ë¤òÆÉ¤ó¤À¤¬¡¢¤½¤ì¤òÍÞÀ©¤¹¤ë¥ª¥×¥·¥ç¥ó¤â̵¤¤¤Ã¤Ý¤¤¡£ ¤è¤¯¸«¤¿¤é¡¢¥¤¥ó¥Ç¥ó¥È¤âÊѤï¤Ã¤Æ¤¤¤Ê¤¤¤¸¤ã¤Ê¤¤¤«¡£ ¥À¥á¡¢µÑ²¼¡£
phpCodeBeautifier (¥³¥Þ¥ó¥É¥é¥¤¥óÈÇ)
¥³¥Þ¥ó¥É¥é¥¤¥óÈÇ¤È GUI ÈǤ¬¤¢¤ë¤¬¡¢ ¤Þ¤È¤á¤ÆÊÑ´¹¤·¤¿¤¤¤Î¤Ç¥³¥Þ¥ó¥É¥é¥¤¥óÈǤÎÊý¤ò»È¤¦¡£ ¥ª¥×¥·¥ç¥ó¤ÎÆþÎϤò¾Ê¤¯¤¿¤á¡¢°Ê²¼¤Î phpCB.bat ¤òºî¤ë¡£
phpCB.exe -space-after-if -space-after-switch -space-after-while -space-before-start-angle-bracket -space-after-end-angle-bracket -one-true-brace-function-declaration -glue-amperscore -change-shell-comment-to-double-slashes-comment -force-large-php-code-tag -force-true-false-null-contant-lowercase -align-equal-statements --padding-char-count 4 %1 %2 %3 %4 %5 %6 %7 %8 %9
phpCB.bat test.php ¤ò¼Â¹Ô¡£
<?php
if ($a == true) {
echo "TRUE";
}
else {
echo "FALSE";
}
?>
¤³¤ì¤â¡¢} ¤Î°ÌÃÖ¤¬¤ª¤«¤·¤¤¡£ µÑ²¼¡£
phpCodeBeautifier (GUI ÈÇ)
»ÅÊý¤Ê¤¤¤Î¤Ç¡¢GUI ÈǤò»î¤·¤Æ¤ß¤ë¡£ ¥Þ¥Ë¥å¥¢¥ë¤Ë½¾¤¤¡¢°Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤Ë¥Á¥§¥Ã¥¯¤òÆþ¤ì¤ë¡£
- space after if
- space after switch
- space after while
- space before start angle bracket
- space after end angle bracket
- one true brace function declaration
- glue amperscore
- glue arrow
- change shell comment to double slashes comment
- force large php code tag
- force true false null contant lowercase
- align equal statements
- optimize eol
ÊÑ´¹·ë²Ì¤Ï°Ê²¼¤ÎÄ̤ꡣ
<?php
if ($a == true) {
echo "TRUE";
} else {
echo "FALSE";
}
?>
¤è¤¦¤ä¤¯¡¢¤½¤ì¤Ê¤ê¤Ë´üÂÔÄ̤ê¤Î·ë²Ì¤¬ÆÀ¤é¤ì¤¿¡£ ¤·¤«¤·¡¢¥Ð¥Ã¥Á½èÍý¤Ç¤¤Ê¤¤¤Î¤¬º¤¤ê¤â¤Î¤À¤·¡¢ Èù̯¤ÊÉôʬ¤Ï¼êºî¶È¤Ç½¤Àµ¤·¤Ê¤¤¤È¤¤¤±¤Ê¤¤¡£ Î㤨¤Ð¡¢ºÇ¸å¤Î } ¤Î¸å¤Ë¥¹¥Ú¡¼¥¹¤¬Æþ¤Ã¤Æ¤·¤Þ¤Ã¤Æ¤¤¤ë¡£ ÆñÆÉ¤Ê¥½¡¼¥¹¥³¡¼¥É¤òÆÉ¤ß¤ä¤¹¤¯¤¹¤ë¤Î¤Ë¤Ï»È¤¨¤½¤¦¤À¤¬¡¢ ¤³¤ì¤ÇÊÑ´¹¤·¤Æ¤½¤ì¤Ç£Ï£Ë¡¢¤È¤¤¤¦¤ï¤±¤Ë¤Ï¤¤¤«¤Ê¤µ¤½¤¦¤À¡£
(Äɵ) GUI ÈǤΥª¥×¥·¥ç¥ó¤È¸«Èæ¤Ù¤Æ¤¤¤¿¤é¡¢ ¥³¥Þ¥ó¥É¥é¥¤¥óÈǤΠ} ¤Î°ÌÃÖ¤ò¤Þ¤È¤â¤Ë¤¹¤ëÊýË¡¤¬Ê¬¤«¤Ã¤¿¡£ -optimize-eol ¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤ì¤ÐÎɤ¤¡£
- 7 google¸¡º÷(phpCodeBeautifier GUI)
- 6 http://blogger.blog360.jp/552429/12934667
- 5 http://www.google.co.jp/url?sa=t&source=web&cd=1&v...
- 4 google¸¡º÷(php ¥½¡¼¥¹ À°·Á)
- 4 google¸¡º÷(PHP_Beautifier)
- 4 google¸¡º÷(PHP_Beautifier phpCodeBeautifier)
- 4 http://www.bing.com/search?q=php code beautifier&g...
- 4 msn¸¡º÷(php ¥½¡¼¥¹¥³¡¼¥É¡¡À°·Á)
- 3 google¸¡º÷(0)
- 3 google¸¡º÷(phpCB.exe)
- 3 google¸¡º÷(php À°·Á)
- 3 google¸¡º÷(php ¥Õ¥©¡¼¥Þ¥Ã¥È)
- 3 google¸¡º÷(php ¥½¡¼¥¹ À°·Á)
- 3 google¸¡º÷(php ¥½¡¼¥¹¡¡À°·Á)
- 3 google¸¡º÷(PHP_Beautifier)
- 3 google¸¡º÷(phpCB.exe)
- 3 google¸¡º÷(PHP ¥½¡¼¥¹¥³¡¼¥É À°·Á)
- 3 http://www.google.co.jp/hws/search?q=phpCodeBeauti...
- 3 http://www.google.co.jp/
- 2 google¸¡º÷(php ¥½¡¼¥¹¥³¡¼¥É À°·Á)
- 2 google¸¡º÷(phpCodeBeautifier)
- 2 google¸¡º÷(phpCodeBeautifier GUI)
- 2 google¸¡º÷(PHP_Beautifier)
- 2 google¸¡º÷(phpCB.exe)
- 2 google¸¡º÷(pear php À°·Á)
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=1&v...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=phpcb ²þ¹...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=php À°·Á&...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=php À°·Á&...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=php À°·Á&...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=php ¥½¡¼¥...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&s...
- 2 google¸¡º÷(phpCodeBeautifier gui)
- 2 google¸¡º÷(phpCodeBeautifier GUI)
- 2 google¸¡º÷(php ¥½¡¼¥¹¤ÎÀ°·Á)
- 2 google¸¡º÷(pukiwiki ¥½¡¼¥¹¥³¡¼¥É¡¡À°·Á)
- 2 google¸¡º÷(phpcodebeautifier)
- 2 google¸¡º÷(php_beautifier)
- 2 google¸¡º÷(php_beautifier)
- 2 google¸¡º÷(php_beautifier)
- 2 google¸¡º÷(phpCodeBeautifier)
- 2 google¸¡º÷(phpCB)
- 2 google¸¡º÷(php ¥½¡¼¥¹À°·Á)
- 2 google¸¡º÷(php ¥½¡¼¥¹¡¡À°·Á¡¡html¡¡¥¤¥ó¥Ç¥ó¥È)
- 2 google¸¡º÷(php ¥¤¥ó¥Ç¥ó¥È¡¡À°·Á)
- 2 google¸¡º÷(Virus php code)
- 2 google¸¡º÷(PHP ¥½¡¼¥¹ À°·Á)
- 2 google¸¡º÷(phpCodeBeautifier GUIÈÇ)
- 2 google¸¡º÷(PHP_Beautifier)
- 2 google¸¡º÷(¥½¡¼¥¹¥³¡¼¥É ¥Õ¥©¡¼¥Þ¥Ã¥È php)
- 2 google¸¡º÷(PHP¡¡¥½¡¼¥¹¡¡À®·Á)
- 2 google¸¡º÷(¥½¡¼¥¹¥³¡¼¥É¡¡¥Õ¥©¡¼¥Þ¥Ã¥È PHP)
- 2 google¸¡º÷(php À°·Á)
- 2 google¸¡º÷(php ¥½¡¼¥¹À¸·×)
- 2 google¸¡º÷(¥½¡¼¥¹¥³¡¼¥É¡¡À°·Á¡¡php)
- 2 google¸¡º÷(¥½¡¼¥¹¥³¡¼¥É À°·Á¡¡php)
- 2 google¸¡º÷(php ¥½¡¼¥¹À°·Á)
- 2 google¸¡º÷(¥½¡¼¥¹¡¡À°·Á¡¡php)
- 2 google¸¡º÷(php ¥½¡¼¥¹ À°·Á)
- 2 http://www.google.co.jp/hws/search?hl=ja&q=php_bea...
- 2 excite¸¡º÷(php ¥½¡¼¥¹À°·Á)
- 2 http://www.bing.com/search?q=php code À°·Á&src=IE-...
- 2 http://www.bing.com/search?q=PHP ¥½¡¼¥¹¥³¡¼¥É À°·Á...
- 2 http://www.about-reference.com/php/pear_manual/pac...
- 2 http://www.about-reference.com/php/pear_manual/ind...
- 2 http://websearch.rakuten.co.jp/?tool_id=1&rid=2000...
- 2 http://pukiwiki.sourceforge.jp/?¼«ºî¥×¥é¥°¥¤¥ó/cou...
- 1 https://www.google.co.jp/
- 1 http://www.revulo.com/
- 1 http://www.google.pl/search?hl=pl&q=zend phpcb.exe...
- 1 http://www.google.de/search?hl=de&client=firefox-a...
- 1 google¸¡º÷(php_beautifier gui)
- 1 google¸¡º÷(phpcb ¥ª¥×¥·¥ç¥ó ²þ¹Ô)
- 1 google¸¡º÷(phpCodeBeautifier gui)
- 1 google¸¡º÷(phpCodeBeautifier)
- 1 google¸¡º÷(php À°·Á)
- 1 google¸¡º÷(php À°·Á)
- 1 google¸¡º÷(php À°·Á)
- 1 google¸¡º÷(php À°·Á¡¡GUI)
- 1 google¸¡º÷(php ¥½¡¼¥¹À°·Á)
- 1 google¸¡º÷(php ¥½¡¼¥¹¡¡¥Õ¥©¡¼¥Þ¥Ã¥È¡¡¼«Æ°À°·Á)
- 1 google¸¡º÷(php ¥³¡¼¥É À°·Á)
- 1 google¸¡º÷(php ¥½¡¼¥¹À°·Á)
- 1 google¸¡º÷(PHPCB "glue-arrow")
- 1 google¸¡º÷(PHP¡¡½ÐÎϤȥ½¡¼¥¹¤ò)
- 1 google¸¡º÷(PHP¡¡¥½¡¼¥¹)
- 1 google¸¡º÷(¥½¡¼¥¹¥³¡¼¥É À°·Á ¥³¥Þ¥ó¥É)
- 1 google¸¡º÷(¥½¡¼¥¹¥³¡¼¥ÉÀ°·Á PHP)
- 1 google¸¡º÷(¥½¡¼¥¹¥³¡¼¥É¡¡À°·Á php)
- 1 google¸¡º÷("one true brace" ·Á)
- 1 google¸¡º÷(PHP_Beautifier)
- 1 google¸¡º÷(phpCodeBeautifier GUI)
- 1 google¸¡º÷(php plus ¥½¡¼¥¹¥³¡¼¥É)
- 1 google¸¡º÷(php ¥½¡¼¥¹¥³¡¼¥É À°·Á)
- 1 google¸¡º÷(php ¥½¡¼¥¹¥³¡¼¥É¡¡²þ¹Ô¡¡ÊÑ´¹)
- 1 google¸¡º÷(optimize-eol)
- 1 google¸¡º÷(PHP_Beautifier¡¡¥¤¥ó¥¹¥È¡¼¥ë)
- 1 google¸¡º÷(PHP ²þ¹Ô¾Ê¤¯)
- 1 google¸¡º÷(PHP_Beautifier pear)
- 1 google¸¡º÷(phpCodeBeautifier gui)
