title: Using Composer locally then uploading files through FTP
body: <p>Bit of a strange set up but have come across a project where Composer has been used in a local environment to get a project started. The original developer did not have ssh access to the production server therefore he used Composer locally and uploaded the 'vendor' directory from his desktop to the server using FTP.</p>
  
  <p>I now need to add the <a href="https://github.com/PHPMailer/PHPMailer" rel="noreferrer">PHPMailer</a> package so have done the following locally on my Mac:</p>
  
  <pre><code>cd Desktop/
  composer require phpmailer/phpmailer
  </code></pre>
  
  <p>This has created the following structure on my desktop:</p>
  
  <pre><code>Desktop/composer.json
  Desktop/composer.lock
  Desktop/vendor/autoload.php
  Desktop/vendor/composer/*
  Desktop/vendor/phpmailer/*
  </code></pre>
  
  <p>Which of these do I need to upload through FTP? I realise <code>vendor/phpmailer/*</code> is the package I want, so will need uploading.</p>
  
  <p>What about the others? I already have an autoloader configured so guessing <code>vendor/autoload.php</code> is not required here? </p>
  
  <p><code>composer.json</code> I could add the package to what's already there, e.g.</p>
  
  <pre><code>"require": {
      *other packages here*
      "phpmailer/phpmailer": "^5.2"
  }
  </code></pre>
  
  <p>But I wasn't sure if that's necessary because I'm not going to be using ssh/Composer on the server to run any updates?</p>