title: How to include external PHP classes in Joomla
body: <p>I have few PHP classes and files that I want to include in Joomla so that I can call those classes. I tried doing <code>require_once config.php</code> to include a <code>PHP file</code> which also includes all the classes that I would want to use in Joomla. </p>
  
  <p>But each time I execute the page I receive the error below:</p>
  
  <pre><code> Fatal error: Class 'SomeClassName' not found
  </code></pre>
  
  <p>is there any other way to include external PHP classes or files in Joomla?</p>
  
  <p>Thanks in advance!</p>