Installing a PHP Package
Handling packages
There are a number of PHP tools for installing packages.
Composer
Composer lets you locally install a set of dependencies. It is already installed at alwaysdata.
To install the dependencies listed in the composer.json file:
-
To use Composer 2 (latest versions):
composer installor
composer2 install -
To use Composer 1:
composer1 installPEAR
PEAR is one of the oldest package management tools for PHP. It is not ready installed but you can download it and run it:
wget http://pear.php.net/go-pear.phar
php go-pear.pharNote
The PHP executable indicated at the PEAR binary level does not take into account the necessary preloaded extensions (e.g. XML). These paths need to be changed and specify /usr/bin/php in place of /usr/alwaysdata/php/[VERSION]/bin/php.