How do I install Composer PHP packages without Composer?

前端 未结 7 813
有刺的猬
有刺的猬 2020-12-04 06:04

I\'m trying to install the Coinbase PHP API but it requires Composer:

https://github.com/coinbase/coinbase-php

I\'m looking for a universal PHP solution (per

相关标签:
7条回答
  • 2020-12-04 06:31

    An alternative solution that worked for me (since php-download was down) can be done by making your own little local composer downloader.

    1. Download and install XAMPP locally: https://www.apachefriends.org/index.html
    2. Download and install composer locally: https://getcomposer.org/download/
    3. Open commandprompt, navigate to say c:\temp and and simply type the composer dependancy, for example: composer require league/oauth2-client
    4. Copy the files from your c:\temp folder to your web host using an FTP program
    5. Add this to the top of your php: require("vendor/autoload.php");
    0 讨论(0)
提交回复
热议问题