title: Laravel 4.2: Include a PHP file (library) into controller
body: <p>I'm doing a project using Laravel 4.2 where I need to include a PHP file (a library to transform a PDF into Text) into the controller, and then return a variable with the text, any idea how?</p>
  
  <p>This is my <strong>controller</strong>:</p>
  
  <pre><code>public function transform() {
      include ('includes/vendor/autoload.php');
  }
  </code></pre>
  
  <p>And my <strong>/app/start/global.php</strong> file:</p>
  
  <pre><code>ClassLoader::addDirectories(array(
      app_path().'/commands',
      app_path().'/controllers',
      app_path().'/models',
      app_path().'/database/seeds',
      app_path().'/includes',
  
  ));
  </code></pre>
  
  <p>And this is the <strong>error</strong>:</p>
  
  <pre><code>include(includes/vendor/autoload.php): failed to open stream: No such file or directory
  </code></pre>