Connect to a self-hosted GitLab instance
12.1If you are not using gitlab.com, use the setUrl method to point the client to your specific GitLab domain.
$client = new Gitlab\Client();
$client->setUrl('https://git.yourdomain.com');
$client->authenticate('your_access_token', Gitlab\Client::AUTH_HTTP_TOKEN);