title: Class Not Found / Cannot redeclare class
body: <p>Hello i am having a weird issue when try including some classes in a file in my laravel project.  This is the file:</p>
  
  <pre><code>&lt;?php namespace Libraries\MPowerLib;
  
  require("mpower/dependency_check.php");
  
  set_include_path(get_include_path() . PATH_SEPARATOR . realpath(dirname(__FILE__)));
  
  abstract class MPower {
    const VERSION = "1.2.0";
  }
  
  if (strnatcmp(phpversion(),'5.3.0') &gt;= 0) {
    define('JSON_ENCODE_PARAM_SUPPORT',   true);
  }else{
    define('JSON_ENCODE_PARAM_SUPPORT',   false);
  }
  
  require_once("mpower/setup.php");
  require_once("mpower/customdata.php");
  require_once("mpower/checkout.php");
  require_once("mpower/checkout/store.php");
  require_once("mpower/checkout/checkout_invoice.php");
  require_once("mpower/checkout/onsite_invoice.php");
  require_once("mpower/direct_pay.php");
  require_once("mpower/direct_card.php");
  require_once("mpower/libraries/Requests.php");
  require_once("mpower/utilities.php");
  </code></pre>
  
  <p>Now when i use require_once i get:</p>
  
  <pre><code>Class 'Libraries\MPowerLib\MPower_Checkout_Invoice' not found
  </code></pre>
  
  <p>However when i use just require it works but i keep getting this error:</p>
  
  <pre><code>Cannot redeclare class libraries\mpowerlib\mpower_checkout
  </code></pre>
  
  <p>I am totally perplexed by this, have played around with the code trying include and include_once but still no change. </p>