2017 © Pedro Peláez
 

library pman

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

image

willdurand/pman

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

  • Sunday, January 29, 2017
  • by couac
  • Repository
  • 2 Watchers
  • 19 Stars
  • 92 Installations
  • Shell
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 1 Versions
  • 10 % Grown

The README.md

pman

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

Installation

1) This package SHOULD be installed globally:, (*2)

composer global require willdurand/pman:dev-master

2) Then, add $COMPOSER_BIN_DIR to your $PATH., (*3)

$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., (*4)

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., (*5)

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:, (*6)

sync-pman --no-cache

2) Run pman to display documentation (like you would do with man):, (*7)

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., (*8)

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., (*9)

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., (*10)

The Versions

29/01 2017

dev-master

9999999-dev

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

  Sources   Download

MIT