An alternative solution that worked for me (since php-download was down) can be done by making your own little local composer downloader.
- Download and install XAMPP locally: https://www.apachefriends.org/index.html
- Download and install composer locally: https://getcomposer.org/download/
- Open commandprompt, navigate to say
c:\temp
and and simply type the composer dependancy, for example:composer require league/oauth2-client
- Copy the files from your
c:\temp
folder to your web host using an FTP program - Add this to the top of your php:
require("vendor/autoload.php");