I am trying to install PHP PhantomJS package in a blank project, but I am getting this error:
Fatal error: Class 'JonnyW\PhantomJs\Client' not found
This is my composer.json:
And this is my index.php:
Can anyone tell why is the class not found? I suspect something is wrong in composer.json but I cannot figure out what.