willdurand/pman 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

willdurand/pman

Composer 安装命令:

composer require willdurand/pman

包简介

pear-doc.php.net/pman on Composer/Packagist

README 文档

README

This package provides pman, the PHP manual in *nix style man pages, via Composer and Packagist.

Installation

  1. This package SHOULD be installed globally:

    composer global require willdurand/pman:dev-master

  2. Then, add $COMPOSER_BIN_DIR to your $PATH.

$COMPOSER_BIN_DIR is often ~/.composer/vendor/bin, but it may be different depending on your operating system or configuration. Also, it is important to use such a path and not directly, .composer/vendor/bin.

Usage

  1. First, you have to fetch the documentation. This can be done time to time or only once, but it MUST be run at least once.

    sync-pman

This script relies on Docker. In case you want to clear Docker's cache, you can pass the --no-cache option to this script:

sync-pman --no-cache
  1. Run pman to display documentation (like you would do with man):

    pman strlen

Why?

I stumbled upon this article (and a few others as well), explaining how to leverage K command in vim. I decided to use this command rather than my plain old way to display PHP manual entries.

I don't use PEAR on my system, that is why I relied on Docker to fetch the PEAR package. Also, adding a script to fetch (and synchronize) the documentation rather than versioning all the files (as done here) seemed better to me.

License

(willdurand's) pman is released under the MIT License. See the bundled LICENSE file for details. Note that pman, the original package from PEAR, has its own license.

统计信息

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

GitHub 信息

  • Stars: 20
  • Watchers: 3
  • Forks: 4
  • 开发语言: Shell

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-07