I have been using phpDocumentor on my Windows laptop lately, and one of the requirements is to have PEAR installed.
While this is a pretty simple process on Linux, it gets a little more complex on Windows.
Actually, it is not that complex. It is just difficult to find the proper resources (or at least it was for me).
I did find a number of posts / tutorials explaining the manual process of installing PEAR, but:
- It introduces possibilities of mishaps,
- I prefer when things are automated 😉
Automatically Install PEAR on Windows
First of all, I should specify that this was done on a Windows 10 Home x64 install with PHP 7.0.6. No WAMP, no MAMP, just PHP.
There are basically 2 steps required to install PEAR:
- Download the “installer”
- Run it
- Add the environment variables (yeah that’s more than 2 steps, but this one is optional. Bonus!)
PHP.net provides a super handy
phar file that will allow you to install PEAR on your system in just one command line. […]