mauri870 / laravel-linkedin

[DISCONTINUED] Linkedin API integration for Laravel and Lumen 5
MIT License
6 stars 0 forks source link

Class 'Happyr\LinkedIn\LinkedIn' not found #2

Open mbarwick83 opened 8 years ago

mbarwick83 commented 8 years ago

Getting error when trying to run any method, for example I get error on:

LinkedIn::getLoginUrl();

Stems from mauri870/laravel-linkedin/src/Mauri870/LinkedIn/LinkedInLaravel.php

mauri870 commented 8 years ago

Hi mbarwick83. You are running the stable release or psr-7 branch?

mbarwick83 commented 8 years ago

Stable. All steps run from readme

mbarwick83 commented 8 years ago

Trying the PSR-7 branch, installed in order:

composer require php-http/guzzle6-adapter:dev-master

and then tried installing this package: composer require mauri870/laravel-linkedin:dev-psr-7

but I get this console error:

Problem 1
    - Can only install one of: php-http/httplug[v1.0.0-beta, 1.0.x-dev].
mauri870 commented 8 years ago

The psr-7 branch is in development, its very unstable. I need to take time to organize and update this branch

mbarwick83 commented 8 years ago

Any idea what's wrong with the stable branch then?

mauri870 commented 8 years ago

I'm with some internet problems now, but in my tests its works fine... For you to be having a class not found problem may be something with their dependencies or composer cache... You tried reinstall the dependencies or/and clear the composer cache?

mbarwick83 commented 8 years ago

tried both, no dice.

mauri870 commented 8 years ago

Remove my package from composer.json and run composer require "mauri870/laravel-linkedin": "dev-test as 0.1". See if works for you

mbarwick83 commented 8 years ago

No dice. happyr/linkedin-api-client 0.6.0 requires guzzlehttp/guzzle ~5.0

mbarwick83 commented 8 years ago

I'm using 6.1

mauri870 commented 8 years ago

You need guzzle 5.x. for using this LinkedIn client

mbarwick83 commented 8 years ago

That's break my Laravel install. Hopefully the PSR-7 branch will be a go soon.

mauri870 commented 8 years ago

Try install this package on a clean laravel install. For me it works fine

mauri870 commented 8 years ago

@mbarwick83 Try test the reformuled psr-7 branch