An enhanced ctags compatible index generator written in pure PHP. Released under GPLv2 license.
An enhanced php ctags index file generator compatible with http://ctags.sourceforge.net/FORMAT.
Using PHP_Parser as PHP syntax parsing backend, written in pure PHP. The generated ctags index file contains scope and access information about classes' methods and properties.
curl -Ss https://github.com/vim-php/phpctags/raw/gh-pages/install/phpctags.phar > phpctags chmod +x phpctags
Optionally one can move it into a directory on the
sudo mv phpctags /usr/local/bin/
Tags will be written to a
tagsfile. In order to specify a different tags file use the
phpctags -f myphp.tags phpfile.php
Directory with recursive option:
phpctags -f myphp.tags -R target_directory
We currently only support building PHAR executable for *nix like platform which providesmakeutility. If you are interested in building an executable for other platform, especially for Windows, please help yourself out. It should be easy though (Apologize for not being able to provide any help for this, I am really not a Windows guy), it also would be great if someone could provide a patch for this.
Installation is straightforward, make sure you have PHP's PHAR extension enabled, then run
makein the root directory of the source, you will get a
phpctagsPHAR executable, add it to your
$PATH, then you can invoke
phpctagsdirectly from anywhere.
See phpctags on packagist for more details.