title: PHP Youtube Data API: Uncaught exception: This library must be installed via composer or by downloading the full package
body: <p>I am trying to access the Youtube Data API using the Google Client library with the quickstart samplecode from Google for webserver-use with PHP. But im having trouble installing the client library, as i have used the method to download the entirely folder by its files from Github. </p>
  
  <p>In the quickstart sample code and install guide for Google Client library, their path for requiring the autoload.php file includes a folder named vendor, where the autoload.php file is inside.</p>
  
  <blockquote>
    <p>If you downloaded the package separately, your require statement will
    look like this:
    require_once '/path/to/google-api-php-client/vendor/autoload.php';</p>
  </blockquote>
  
  <p>This folder does not exist in the library files at Github.</p>
  
  <p>I therefore tried to make the filestructure as they require, by copying the autoload.php file from google-api-php-client/src/google/ to a new folder named vendor inside google-api-php-client.</p>
  
  <p>When executing the quickstart.php file, this error occurs:</p>
  
  <blockquote>
    <p>Fatal error: Uncaught Exception: This library must be installed via
    composer or by downloading the full package. See the instructions at
    <a href="https://github.com/google/google-api-php-client#installation" rel="nofollow noreferrer">https://github.com/google/google-api-php-client#installation</a>. in 
    path\to\project\google-api-php-client\vendor\autoload.php:14 Stack
    trace: #0  path\to\project\quickstart.php(11): require_once() #1
    {main} thrown in 
    path\to\project\google-api-php-client\vendor\autoload.php on line 14</p>
  </blockquote>
  
  <p>This is the file structure im using:<br>
  project folder <br>
  &nbsp;&nbsp;&nbsp;&nbsp;google-api-php-client folder<br>
  &nbsp;&nbsp;&nbsp;&nbsp;src folder<br>
  &nbsp;&nbsp;&nbsp;&nbsp;vendor folder<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;autoload.php file<br>
  client_secrets.json file<br>
  quickstart.php file</p>
  
  <p>There is an duplicate of this thread here: <a href="https://stackoverflow.com/questions/40888937/missing-vendor-autoload-php-in-google-api-php-client-master">Missing vendor/autoload.php in google-api-php-client-master</a> but its not solved so im looking for answers that can help solve this issue.</p>