wget http://pear2.php.net/pyrus.phar # Set where to install packages: $ php pyrus.phar mypear ~/src/my-project/vendor # Install a package: $ php pyrus.phar install PEAR2_HTTP_Request # List installed packages: $ php pyrus.phar list-packages