RE: [PHP] Code formatter

From: Date: Wed, 02 Feb 2011 15:23:43 +0000
Subject: RE: [PHP] Code formatter
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-311130@lists.php.net to get a copy of this message
> -----Original Message----- > From: ken.guest@gmail.com [mailto:ken.guest@gmail.com] On > Behalf Of Ken Guest > Sent: Monday, January 31, 2011 3:26 PM > To: Hansen, Mike > Cc: php-general@lists.php.net > Subject: Re: [PHP] Code formatter > > > > On Mon, Jan 31, 2011 at 8:27 PM, Hansen, Mike > <Mike.Hansen@atmel.com> wrote: > > > I've got an application that I'm fixing up and I'd like > to run it through a code formatter. Is there something like > Perl Tidy for PHP? If so, what are you experiences with it. > No prob running it on the command line. It'd be great if it > followed the PEAR coding standards. > > > > > Have you found http://pear.php.net/package/PHP_Beautifier > yet? ;) <http://www.php.net/unsub.php> > > > Ken > It mostly works ok. Unfortunately, there's a bug in it that removes blank lines. I found this one that seems to work: http://beta.phpformatter.com/ I'd rather have one I can run on the command line, but this will have to do. Mike

« previous php.general (#311130) next »