title: Symfony Class Not Found
body: <p>I am getting the error:</p>
  
  <pre><code>PHP Fatal error:  Class 'Symfony\\Component\\Process\\PhpProcess' not found in ...
  </code></pre>
  
  <p>It's my first time using Symfony. I download the files from the <a href="https://github.com/symfony/Process" rel="nofollow">GitHub</a> site. Since the downloaded files are of the Process directory, I created folders in order to have the correct path. (Symfony/Component/Process/<em>DOWNLOADED FILES</em>). </p>
  
  <p>I placed the Symfony directory in the main directory (where my index file is). </p>
  
  <p>Is this how you install Symfony? (Note I only need the Process sub-directory and not the whole framework)</p>
  
  <p>For now I am using this ready-made code, just to see if I can get it running:</p>
  
  <pre><code>use Symfony\Component\Process\PhpProcess;
  
      $command = file_get_contents('/hello_world.php');
  
      if ( $command ) {
          $process = new PhpProcess($command); //&lt;----- GETTING ERROR HERE 
          $process-&gt;run();
  
          if ($process-&gt;isSuccessful()) {
  
              $output = $process-&gt;getOutput();
              // ... 
          }
          else {
              throw new Exception($process-&gt;getErrorOutput());
          }
      }
  </code></pre>
  
  <p>Why am I getting this error and how can I fix it please? Is it due to a bad path?</p>