2017 © Pedro Peláez
 

symfony-bundle linkedin-bundle

A symfony bundle for happyr/linkedin-api-client

image

happyr/linkedin-bundle

A symfony bundle for happyr/linkedin-api-client

  • Sunday, February 4, 2018
  • by Nyholm
  • Repository
  • 2 Watchers
  • 7 Stars
  • 8,233 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 5 Versions
  • 17 % Grown

The README.md

Happyr LinkedIn bundle

This is a very small bundle that registers a service for the LinkedIn client., (*1)

Easy installation

For an easy installation of all components, you can run this Composer command:, (*2)

composer require php-http/curl-client guzzlehttp/psr7 php-http/message happyr/linkedin-bundle

Then add LinkedInBundle to your AppKernel., (*3)

// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Happyr\LinkedInBundle\HappyrLinkedInBundle()
        );
    }
}

Optional

If you want some great debugging and an easier set up you may install the HTTPlugBundle., (*4)

composer require php-http/httplug-bundle

Then make sure you have both HttplugBundle and LinkedInBundle to your AppKernel., (*5)

// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Http\HttplugBundle\HttplugBundle(),
            new Happyr\LinkedInBundle\HappyrLinkedInBundle()
        );
    }
}

Why installing so many packages?

See the installation note at the LinkedIn client (installation) or the HTTPlug documentation., (*6)

Usage

happyr_linkedin:
  app_id: 'xxx'
  app_secret: 'yyy'
  request_format: 'json' # Default
  response_format: 'array' # Default
  http_client: 'httplug.client' # Service ID for an object implementing Http\Client\HttpClient 
  http_message_factory: 'httplug.message_factory' # Service ID for an object implementing Http\Message\MessageFactory
$linkedin = $this->get('happyr.linkedin');
$user = $linkedin->get('v1/people/~:(firstName,lastName)');

For more info look at the libraries repository: https://github.com/Happyr/LinkedIn-API-client, (*7)

Authentication

The easiest way to implement LinkedIn Authentication is to use Symfony's Guard component., (*8)

The Versions

18/08 2016

0.2.0

0.2.0.0 http://developer.happyr.com

A symfony bundle for happyr/linkedin-api-client

  Sources   Download

MIT

The Requires

 

05/03 2016

0.1.0

0.1.0.0 http://developer.happyr.com

A symfony bundle for happyr/linkedin-api-client

  Sources   Download

MIT

The Requires