Run the following commands in order:
apt-get updateapt-get install curlapt-get install subversionwget -O phpunit https://phar.phpunit.de/phpunit-7.pharchmod +x phpunitmv phpunit /usr/local/bin/phpunitcurl -s https://getcomposer.org/installer | phpmv composer.phar /usr/local/bin/composer