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
[PARENTDIR] Parent Directory - - [   ] phptags-1.2.rpm 2014-11-25 23:46 16K Installer / Package [   ] phptags-1.2.phar 2014-11-25 23:46 13K Installer / Package [   ] phptags-1.2.exe 2014-11-25 23:46 38K Installer / Package [   ] phptags-1.2.deb 2014-11-25 23:46 15K Installer / Package [   ] phptags-1.1.rpm 2014-11-25 23:46 14K Installer / Package [   ] phptags-1.1.exe 2014-11-25 23:46 37K Installer / Package [   ] phptags-1.1.deb 2014-11-25 23:46 12K Installer / Package [   ] phptags-1.0.rpm 2014-11-25 23:46 11K Installer / Package [   ] phptags-1.0.exe 2014-11-25 23:46 37K Installer / Package [   ] phptags-1.0.deb 2014-11-25 23:46 10K Installer / Package [   ] phptags-0.9.rpm 2014-11-25 23:46 11K Installer / Package [   ] phptags-0.9.exe 2014-11-25 23:46 36K Installer / Package [   ] phptags-0.9.deb 2014-11-25 23:46 9.3K Installer / Package [   ] phptags-0.8.rpm 2014-11-25 23:46 9.4K Installer / Package [   ] phptags-0.8.exe 2014-11-25 23:46 35K Installer / Package [   ] phptags-0.8.deb 2014-11-25 23:46 8.2K Installer / Package [   ] phptags-0.7.rpm 2014-11-25 23:46 8.1K Installer / Package [   ] phptags-0.7.exe 2014-11-25 23:46 34K Installer / Package [   ] phptags-0.7.deb 2014-11-25 23:46 7.1K Installer / Package [   ] phptags-0.6.deb 2014-11-25 23:46 6.2K Installer / Package [   ] phptags-0.5.deb 2014-11-25 23:46 5.4K Installer / Package [   ] phptags 2014-11-25 23:46 22K Core script

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 http://apt.include-once.org/.

See also http://freshcode.club/projects/phptags and the SCM/wiki/ticket system