I am updating my website\'s login system from LightOpenID to Google\'s Oauth 2.0.
When I require the Client.php and the Service/Oauth2.php I get an error
While working with Google API integration
Fatal error: Class 'abc' not found
error comes when there is definitely something different between the library you have in composer.json above, and the library that is actually being auto-loaded.
had same problem just changed in my composer.json
{"require": {"google/apiclient": "1.0.*@beta"}}
to
{"require": {"google/apiclient": "2.0.*"}}
and then execute php composer.phar update (make sure you give right path for .phar file)