title: Need help understanding/installing a service from GitHub via Composer
body: <p>I am trying to install a service from GitHub via Composer but I am having trouble understanding and debugging since the installation of the service (PrintNode-PHP) does not work.</p>
  
  <p>I have a web-hotel via UnoEuro where I have installed Composer. This seems to have worked fine.</p>
  
  <p>On GitHub there is a service that I want to install on my web-hotel, so I have connected to my web-hotel and folder where I want to install via Terminal/SSH (Mac) and installed the service: <a href="https://github.com/PrintNode/PrintNode-PHP" rel="nofollow noreferrer">https://github.com/PrintNode/PrintNode-PHP</a></p>
  
  <p>I installed the service: <code>php composer.phar require PrintNode/printnode-php:dev-master</code></p>
  
  <p>And get this (successful) result:</p>
  
  <pre><code>./composer.json has been created
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Package operations: 1 install, 0 updates, 0 removals
    - Installing printnode/printnode-php (dev-master 960acab): Cloning 960acabca3
  Writing lock file
  Generating autoload files
  </code></pre>
  
  <p>Now I am trying the examples and this is where errors occur.
  I am trying to do this example: <a href="https://github.com/PrintNode/PrintNode-PHP/blob/master/examples/example-1-submitting-a-printjob.php" rel="nofollow noreferrer">https://github.com/PrintNode/PrintNode-PHP/blob/master/examples/example-1-submitting-a-printjob.php</a></p>
  
  <p>However I get an error that a file (credentials.php) is not found - when using Composer I thought that the vendor-installation made sure that all dependant files was installed. Error can be seen here: <a href="http://maxie.dk/labels/example-1-submitting-a-printjob.php" rel="nofollow noreferrer">http://maxie.dk/labels/example-1-submitting-a-printjob.php</a></p>
  
  <p>When looking in the folder I can see that I have the credentials.php file although located in src/PrintNode/credentials.php. So I have tried to update the path in the above PHP-file, but still same error: </p>
  
  <pre><code>Warning: include(credentials.php) [function.include]: failed to open stream: No such file or directory in /var/www/maxie.dk/public_html/labels/example-1-submitting-a-printjob.php on line 8
  </code></pre>
  
  <p>So the question is: what am I doing wrong here? what am I missing that results in me not being able to install and use PrintNode service from Composer without errors?</p>
  
  <p>I hope someone can guide me so I can get this to work. Thanks a lot.</p>