Follow the steps:
1) Start by editing composer.json and specifying that you need the latest version (denoted by *) of the HybridAuth package (hybridauth/hybridauth). By default Composer will search for the package in the Packagist repository:
{
...
"require": {
...
"hybridauth/hybridauth": "*"
},
...
}
2) Now run php