Archives for: December 2007, 14

Seeking Perltidy for PHP? Look No Further than PHPTidy

12/14/07 | by admin [mail] | Categories: Nerd Thoughts

It seems that the many people who have been looking for a php beautifier now have a very nicely done perltidy work-alike in Magnus Rosenbaum’s new phptidy program.

It does have a few user-friendliness issues- just make sure your PHP is compiled with the tokenizer built in or it will not work and it will not tell you why it doesn’t work. Also edit the phptidy.php script to change some default variables or the javadoc style comments it so nicely auto-generates may have the author name in them wrong. After that, if you like the default formatting you’re done.

http://cmr.cx/phptidy/

I also tried PHP Beautifier but it created code that was way too compact to read clearly by default and required the use of specific filters to alter these spacing choices. I found the default settings of phptidy to be just my style and I am sticking with that for now.

Try also:
http://beautifyphp.sourceforge.net/

Both of the projects could use a little documentation, but if you read the source you’ll figure it out pretty quick.

Matthew Steven's Thought Box

Matthew Steven is a lifelong technology enthusiast. He has been in the business of creating ecommerce web applications, solving problems on UNIX platforms, and hosting servers since the earliest days of the internet. He is active in community service, plays classical guitar, and has a number of furry children.

December 2007
Sun Mon Tue Wed Thu Fri Sat
 << < Current> >>
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

Linkblog

b2evolution

  • Matt's Org

    Dig the dirt on Matthew Steven at his homepage.

    Permalink

Misc

XML Feeds

What is RSS?

powered by b2evolution free blog software