phptags is a simple commandline tool to automate the rewriting of PHP open and close tags. It can convert between short and long open tags, add missing close tags or remove them again, and correct leading or trailing whitespace issues. It utilizes both regex or the tokenizer.
Release Notes: The UTF-8 dependency for whitespace rewriting has been reverted. In the tokenizer mode, spacing is now preserved in more cases. A compatibility fix for PHP 5.2 has been applied.
Release Notes: The tokenizer mode has been simplified internally, now utilizes some regex matching as well, but still doesn't retain whitespace variations completely. New matching rules for the regex mode are more exact on this. And a new configuration file override has been added.
Release Notes: This minor update finishes some commandline flag handling, adds colorization for the whitespace --warn mode and two additional checks, and removes eventual NUL bytes.