title: PHP failed to load vendor folder : How to install composer on my server?
body: <p>Asked <a href="https://stackoverflow.com/questions/26279103/how-to-implement-paypal-pro-rest-api-sdk-for-php-getting-error-the-vendor-fol">Here</a> but no proper response.<br><br>
  Hi, When I tried to use paypal sdk, and when I tried to submit the details, it is showing this error.</p>
  
  <pre><code>Fatal error: require(): Failed opening required '/home/wwwrapid/public_html/test/samples/vendor/paypal/paypal-merchant-sdk-php-4f570f5/lib/services/PayPalAPIInterfaceService/PayPalAPIInterfaceService.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wwwrapid/public_html/test/merchant-sdk-php-master/samples/PPAutoloader.php on line 451
  </code></pre>
  
  <p>When I go through the folders path, I dont find any folder named 'vendor'.
  I have been searching the solution for this for two days. Some sites say it's a composer error and installing composer solves the issue. and this is the code for that.</p>
  
  <pre><code>curl -sS https://getcomposer.org/installer | php
  mv composer.phar /usr/local/bin/composer
  </code></pre>
  
  <p>My problem is I am not able to understand what they mean? I don't even know where to add this code? I mean in which file? How can that composer be installed on my site? </p>