承接 jeremykendall/phpctagger 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jeremykendall/phpctagger

最新稳定版本:0.0.7

Composer 安装命令:

composer require jeremykendall/phpctagger

包简介

Creates ctags for composer projects

README 文档

README

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.

{
    "require-dev": {
        "jeremykendall/phpctagger": "dev-master"
    }
}

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.

{
    "scripts": {
        "post-install-cmd": [
            "PhpCtagger\\Composer\\Script\\Ctagger::ctag"
        ],
        "post-update-cmd": [
            "PhpCtagger\\Composer\\Script\\Ctagger::ctag"
         ]
    }
}

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.

统计信息

  • 总下载量: 924
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-12-18