Download the PHP package jeremykendall/phpctagger without Composer
On this page you can find all versions of the php package jeremykendall/phpctagger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeremykendall/phpctagger
More information about jeremykendall/phpctagger
Files in jeremykendall/phpctagger
Package phpctagger
Short Description Creates ctags for composer projects
License MIT
Informations about the package phpctagger
PHP Ctagger
PHP Ctagger is a Composer
script that will create a
ctags tag file for a project's autoloadable library and that project's dependencies. The tag file
will be placed in your project's root directory at /tags
.
Installation
The only supported method of installation is via Composer. As PHP Ctagger is
intended to be used in a development environment (and will only create a tag file when Composer is in dev mode), PHP Ctagger
must be installed as a dev dependency. Add the following to your composer.json
.
PHP Ctagger utilizes Composer's Scripts functionality. In order for PHP Ctagger to build your tag file, the script must also be added to your composer.json.
In this example, the script will run both post install and post update.
With that done, run composer update --dev
to install PHP Ctagger and build
your tag file.
ctags version
Ensure you're running the most recent version of ctags. This is especially important on OSX, as the wrong version of ctags is installed by default.
Limitations
This initial implementation is extremely naive, and will only create tags for
libraries and dependencies that have path entries in
/vendor/composer/autoload_namespaces.php
.
Vim
In order to use your new tag file, vim needs to know about it. Make sure to
load your tag file via whatever means you feel most comfortable. I've placed
the following in my .vimrc
set tags=tags
Work in progress
This project is in its alpha stage, and I'm still not sure if it's even a good idea. It's been fun to play with so far, so that's good. Pull requests, new issues, comments, and constructive criticisms are welcome.