The first time I try to download a Composer package that does not use a Laravel service provider or facade.
I am trying to install this package: https://github.com/mollie/mollie-api-php
I followed the steps to install the package using Composer.
At the top of my controller, I added:
require_once base_path('vendor/Mollie/API/Client.php');
I get the following error:
main (): Crash on opening '../vendor/Mollie/API/Client.php' (Include_path = ': /Applications/MAMP/ben/PHP/php7.0.0/Library/PHP')
It cannot find the file. Although the path in error is the path where the class is located. Are there a few more steps I should take?
Package Structure:

composer.json from the package:
"autoload": { "psr-0": { "": "src/" }
Update: My controller has this namespace
namespace App\Http\Controllers;
Therefore, when I just try to update my class, it obviously cannot find this class inside this namespace. So how do I ignore the namespace for class 1
Because this will not work inside this controller:
$mollie = new Mollie_API_Client;
source share