Need help with phpctags?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

262 Stars 51 Forks 246 Commits 6 Opened issues


An enhanced ctags compatible index generator written in pure PHP. Released under GPLv2 license.

Services available


Need anything else?

Contributors list


An enhanced php ctags index file generator compatible with

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.

This tool was originally developed to enhance the PHP syntax outline surport for vim tagbar plugin. The enhanced functionality has been included into an addon plugin for tagbar as tagbar-phpctags.


Download and installation

curl -Ss > phpctags
chmod +x phpctags

Optionally one can move it into a directory on the

sudo mv phpctags /usr/local/bin/


Single file:

phpctags phpfile.php

Tags will be written to a

file. 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 provides

utility. 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

in the root directory of the source, you will get a
PHAR executable, add it to your
, then you can invoke
directly from anywhere.

See phpctags on packagist for more details.



  • Snapi for composer support.
  • DeMarko for memory limit support.
  • Sander Marechal for improve console support.
  • Mark Wu for building a stand-alone PHAR executable.
  • InFog for maintaining the project since end of 2019.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.