Get pman: man pages for PHP functions

This link post is quite irrelevant should you never be using PHP. Therefore, I categorized it.

Published in 2010, Unix manual pages for PHP functions is still a useful tip.

A decade of using Python, and you don’t ask yourself where the argument goes in a function you use daily. Experienced PHP developers look at the php.net website quite a lot. Print cheatsheets (but never look at them, since the php.net website exists).

“There’s a quicker way.” You look up a trick on the Internet. In this case it was long-time PEAR committer cweiske who pointed this out.


pear channel-discover doc.php.net
pear channel-update doc.php.net
pear install doc.php.net/pman

or, if your setup forces you to use sudo (for your copy-and-pasting pleasure):


sudo pear channel-discover doc.php.net
sudo pear channel-update doc.php.net
sudo pear install doc.php.net/pman

This downloads five megabytes of PHP documentation, and a small command-line utility that fires up your text viewer.

Result: any PHP function can be looked up locally, in your viewer: pman strpos

Thanks, Bjori!

Published by olleolleolle

Olle is a programmer, enjoying sunny Malmö in Sweden.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.