PHPackages                             yaoguais/phpctags - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. yaoguais/phpctags

ActiveLibrary

yaoguais/phpctags
=================

An enhanced definition and declaration jumper written in pure PHP for vim-php.

v0.0.5(7y ago)213PHP

Since Sep 4Pushed 6y agoCompare

[ Source](https://github.com/yaoguais/phpctags.vim)[ Packagist](https://packagist.org/packages/yaoguais/phpctags)[ RSS](/packages/yaoguais-phpctags/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

phpctags
========

[](#phpctags)

> An enhanced definition and declaration jumper written in pure PHP for vim-php.

[![Build Status](https://camo.githubusercontent.com/a3fba2f8d2934953d34542a77fd335ce562d02d59e925215df8610e1b92662c1/68747470733a2f2f7472617669732d63692e6f72672f79616f67756169732f70687063746167732e76696d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/yaoguais/phpctags.vim)[![codecov](https://camo.githubusercontent.com/4e7407ec3db33d376cea0077b0bdd1dfd0e0c10b08e3d754d1b285e7f7219cad/68747470733a2f2f636f6465636f762e696f2f67682f79616f67756169732f70687063746167732e76696d2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/yaoguais/phpctags.vim)

When we work on a huge project, which would has hundreds of the same tags, and it is hard to choose the correct tag.

And I wrote the jumper that named "phpctags", but which doesn't generate tags file. It replace the shortcut key "&lt;C-\]&gt;" with executing an external php script, which returns the jump position for the definition or declaration of the keyword that you hit.

Usage
=====

[](#usage)

```
$ bin/PHPJumpToDefinition --help

  -f, --file=FILE              file that needs to be parsed
  -l, --line=LINE              line number where the keyword appear
  -c, --column=COLUMN          column where the keyword appear
  -k, --keyword=KEYWORD        keyword that needs to be analysed
  -r, --root=ROOT              project root for finding functions and others
  -a, --autoload=AUTOLOAD      user project autoload files, default 'vendor/autoload.php'
  -h, --help                   print the help info and exit
  -v, --version                print the version and exit

returns '$jump_file $jump_line $jump_position' when success,
and returns a string start with 'Error' then following detail
information when failed.

```

Install
=======

[](#install)

Install for popular vim package managers:

- [Vim 8 packages](http://vimhelp.appspot.com/repeat.txt.html#packages)
    - `git clone https://github.com/yaoguais/phpctags.vim.git ~/.vim/pack/plugins/start/phpctags.vim`
- [Pathogen](https://github.com/tpope/vim-pathogen)
    - `git clone https://github.com/yaoguais/phpctags.vim.git ~/.vim/bundle/phpctags.vim`
- [vim-plug](https://github.com/junegunn/vim-plug)
    - `Plug 'yaoguais/phpctags.vim', { 'do': ':GoUpdateBinaries' }`
- [Vundle](https://github.com/VundleVim/Vundle.vim)
    - `Plugin 'yaoguais/phpctags.vim'`

Install the\_silver\_searcher for quick searching:

```
$ brew install the_silver_searcher
  or
$ apt-get install silversearcher-ag

```

Finally add the bin dir into the system $PATH variable:

```
$ git clone https://github.com/yaoguais/phpctags.vim.git
$ cd phpctags.vim && composer install --no-dev
$ export PATH=$(pwd)/bin:$PATH

```

Road Map
========

[](#road-map)

[Road Map](./ROADMAP.md)

Enjoy it
========

[](#enjoy-it)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

5

Last Release

2800d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fdd0aa2fac2c6dd4999788552f1485e79eae1fae98a2ae200c991f7aad24f220?d=identicon)[jegarn](/maintainers/jegarn)

---

Top Contributors

[![yaoguais](https://avatars.githubusercontent.com/u/6268554?v=4)](https://github.com/yaoguais "yaoguais (5 commits)")

---

Tags

ctagsphp-vimvim-pluginsdefinitionctagsvimdeclaration

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/yaoguais-phpctags/health.svg)

```
[![Health](https://phpackages.com/badges/yaoguais-phpctags/health.svg)](https://phpackages.com/packages/yaoguais-phpctags)
```

###  Alternatives

[techlivezheng/phpctags

An enhanced php ctags index generator.

26440.9k1](/packages/techlivezheng-phpctags)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
