yegor256
yegor256

Reputation: 105083

PHP code polisher - exists anywhere?

Could you please recommend some software that will do PHP code polishing according to pre-defined formatting rules?

Thanks!

Upvotes: 2

Views: 282

Answers (2)

Addsy
Addsy

Reputation: 4054

I use codesniffer (http://pear.php.net/package/PHP_CodeSniffer) to check my code and keep it nice and tidy. It doesn't do any re-formatting tho, just displays a list of errors based on whichever standard you choose to check against then you go fix them by hand. Personally I prefer that tho. Its also very flexible and you can add your own standards or amend the existing ones using php

Upvotes: 1

Pekka
Pekka

Reputation: 449485

I use Polystyle. It's quite nice and has very customizable rules. Costs $15, trial version is available. Is worth the money.

There are free ones around as well. I think there is a good formatter in some Eclipse PHP package (I forgot the name) and there is the on-line PHP Beautifier service (that one doesn't have any formatting rules, though).

Upvotes: 1

Related Questions