Forum Moderators: coopster

Message Too Old, No Replies

PHP Code Cleaner

PHP Code Cleaner

         

Das Capitolin

6:59 am on Nov 16, 2008 (gmt 0)

10+ Year Member



I've been searching the web for a decent PHP code cleaner to bulk-clean a Joomla-based test site. There are hundreds of php and js files, and much of the code has unwanted white space and comments. Anyone have a good suggestion for where to look?

dreamcatcher

9:30 am on Nov 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

Have you tried a search on Sourceforge?
[sourceforge.net...]

dc

Das Capitolin

5:29 pm on Nov 16, 2008 (gmt 0)

10+ Year Member



Yes, I have. So far it seems that every program or script I've discovered either doesn't work at all, or operates on a file-by-file basis. The best one I've found actually doesn't even clean, it only formats; Dreamweaver can do that if I wanted to spend the rest of my lifetime running through the hundreds of files.

So to be more specific, do any of you use a PHP tool that removes white space, comments, and also formats the code? Please give me some suggestions.

[edited by: Das_Capitolin at 5:30 pm (utc) on Nov. 16, 2008]

dreamcatcher

11:30 pm on Nov 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



do any of you use a PHP tool that removes white space, comments, and also formats the code? Please give me some suggestions.

Well, I don`t personally because I never use 3rd party code. Sourceforge has a few 'PHP Code Beautifiers', whatever that means. I`ve seen some beautfiers turn PHP code into a total mess. Its personal opinion how you think code should be laid out.

Maybe other users have something they can recommend.

dc