Can't load a Non-Laravel Composer package
<p>It's the first time that I try to load a Composer package that doesn't use a Laravel service provider or a facade.</p>

<p>I am trying to install this package:
<a href="https://github.com/mollie/mollie-api-php" rel="nofollow noreferrer">https://github.com/mollie/mollie-api-php</a></p>

<p>I have followed the steps to install the package with Composer.</p>

<p>At the top of my controller I added:</p>

<pre><code>require_once base_path('vendor/Mollie/API/Client.php');
</code></pre>

<p>I get the following error:</p>

<blockquote>
  <p>main(): Failed opening required '../vendor/Mollie/API/Client.php' 
      (include_path='.:/Applications/MAMP/bin/php/php7.0.0/lib/php')</p>
</blockquote>

<p>It can't find the file. Even though the path in the error is the path where the class is located. Are there more steps I should do?</p>

<p><strong>Structure of the package:</strong></p>

<p><a href="https://i.stack.imgur.com/rHml2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rHml2.png" alt="enter image description here"></a></p>

<p><code>composer.json</code> from the package:</p>

<pre><code>"autoload": {
    "psr-0": {
        "": "src/"
    }
</code></pre>

<p><strong>Update:</strong>
My controller has this namespace </p>

<pre><code>namespace App\Http\Controllers;
</code></pre>

<p>So when i just try to new up my class it obviously can't find that class inside that namespace. So how do i ignore the namespace for 1 class</p>

<p>Because this will not work inside this controller:</p>

<pre><code>$mollie = new Mollie_API_Client;
</code></pre>