[php-maint] Bug#604879: RFP: phptidy -- Beautifier for PHP code

jidanni at jidanni.org jidanni at jidanni.org
Thu Nov 25 00:50:54 UTC 2010


X-debbugs-Cc: phptidy at cmr.cx, pkg-php-maint at lists.alioth.debian.org
Package: wnpp
Severity: wishlist

* Package name    : phptidy
  Version         : 2.10
  Upstream Author : Magnus Rosenbaum <phptidy at cmr.cx>
* URL             : http://developer.berlios.de/projects/phptidy/
* License         : GPL
  Programming Lang: PHP
  Description     : Beautifier for PHP code

This is a little tool for formatting PHP code. It aims to make the code better
readable and thus better understandable.

Unlike other beautifiers, phptidy does not completely reformat the code and
remove formatting, which was intended by the author. It only touches things
which are usually not intended. In case of doubt, phptidy will not touch
anything. Because of this strategy it is also very unlikely, that phptidy by
fault changes the functionality of the code.

phptidy is useful in many situations:

- You can use it on your own code during development to keep the code tidy,
  wasting no time on indenting and formatting by hand.

- In a project with more than one person coding you have less trouble with
  people who do not confirm to the style guide.

- If you use a version control system you can require all participating people
  to run phptidy before committing changes. Then you won't have anymore trouble
  with unintended changes due to code formatting or with the trailing
  whitespace or wrong line breaks of some brain dead editors (or their users).

- If you have to maintain some ultimately ugly code of someone else. After
  running phptidy the code will be much better readable. Well, the code will
  not be perfect, but it's a big help anyway.

The used coding standard is mainly inspired by the PEAR Coding Standards:
http://pear.php.net/manual/en/standards.php

phptidy is released under the GPL and can be used for free.

[Yes, there already is a similarly named php5-tidy package here in Debian
(but which tidies HTML.) Magnus: RFP means I Request For
somebody to Package this for Debian. --jidanni]





More information about the pkg-php-maint mailing list