Is there a command line argument that allows you to install PHP Pear without user prompt? I’d like to automate the following execution:
wget http://pear.php.net/go-pear.phar
php go-pear.phar
pear config-set preferred_state beta
pear channel-discover pear.phpunit.de
pear channel-discover components.ez.no
pear channel-discover pear.symfony-project.com
pear install --alldeps phpunit/PHPUnit
rm go-pear.phar
php go-pear.phar prompts the user for install/configuration information.
Turns out expect did the trick. Here is what I ended up with:
install-pear.sh
install-phpunit.sh
To run: