I got the same error when autoload was not called correctly.
What solved for me is:
require_once('vendor/autoload.php');
I use this in plain php project,the php page where i use it it is the same folder as the mikehaertl folder. So i am sure that your issue is related to this