Index of .../phptags

phptags is a simple commandline tool to tidy up open and close tags in PHP scripts. It can rewrite <?php open tags into long and short form, add or remove trailing ?> close tags, and strip leading or trailing whitespace (or UTF-8 BOM).

phptags --whitespace *.php
Fixes surrounding whitespace issues for all *.php scripts in current directory.
phptags --long ./templates/
Rewrites all short <? into long <?php tags. Recursively works on a directory tree.
phptags --short --all --tokenizer *.php
Uses tokenizer mode for rewrites, turns all long open tags into short ones.
phptags --verbose --closed --whitespace --warn --short *.php scripts/ templates/ config/*.php
Adds missing ?> close tags, warns about and fixes whitespaces, also shortens <php echo tags into <?= (but not others), is verbose, and scans directories and a given list of *.php files.
phptags -v -u -w -W -a .
Short options for verbose, unclosed, whitespace, warn, shortall. Dives into all current subdirs.

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - - [   ] phptags 08-Jan-2012 21:42 21K Core script [   ] phptags-0.5.deb 15-Dec-2011 23:55 5.4K Installer / Package [   ] phptags-0.6.deb 15-Dec-2011 23:55 6.2K Installer / Package [   ] phptags-0.7.deb 16-Dec-2011 19:51 7.1K Installer / Package [   ] phptags-0.7.exe 19-Dec-2011 01:51 34K Installer / Package [   ] phptags-0.7.rpm 16-Dec-2011 19:51 8.1K Installer / Package [   ] phptags-0.8.deb 19-Dec-2011 23:50 8.2K Installer / Package [   ] phptags-0.8.exe 19-Dec-2011 02:01 35K Installer / Package [   ] phptags-0.8.rpm 19-Dec-2011 23:50 9.4K Installer / Package [   ] phptags-0.9.deb 21-Dec-2011 18:29 9.3K Installer / Package [   ] phptags-0.9.exe 21-Dec-2011 18:29 36K Installer / Package [   ] phptags-0.9.rpm 21-Dec-2011 18:29 11K Installer / Package [   ] phptags-1.0.deb 08-Jan-2012 21:42 10K Installer / Package [   ] phptags-1.0.exe 08-Jan-2012 21:42 37K Installer / Package [   ] phptags-1.0.rpm 08-Jan-2012 21:42 11K Installer / Package

Linux packages have been built using EPM. Windows faux installer requires a working PHP installation as well. Please read the manpage. Available via APT repository

See also and the SCM/wiki/ticket system