PHPackages                             elninotech/linkedin-api-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. elninotech/linkedin-api-client

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

elninotech/linkedin-api-client
==============================

LinkedIn API client. Handles OAuth, CSRF protection. Easy to implement and extend. This is a standalone library for any composer project.

v2.0.0(10mo ago)170MITPHPPHP ^7.2 || ^8.0CI passing

Since Jan 3Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/elninotech/LinkedIn-API-client)[ Packagist](https://packagist.org/packages/elninotech/linkedin-api-client)[ RSS](/packages/elninotech-linkedin-api-client/feed)WikiDiscussions 2.x Synced today

READMEChangelog (1)Dependencies (7)Versions (6)Used By (0)

LinkedIn API client in PHP
==========================

[](#linkedin-api-client-in-php)

[![CI Status](https://github.com/elninotech/Linkedin-API-Client/workflows/CI/badge.svg)](https://github.com/elninotech/Linkedin-API-Client/actions)[![codecov](https://camo.githubusercontent.com/c57424d04cbb61663096d4b612e7d918f4ac532dd59a0bf4ae2a70e559347a46/68747470733a2f2f636f6465636f762e696f2f6769746875622f656c6e696e6f746563682f4c696e6b6564496e2d4150492d636c69656e742f67726170682f62616467652e7376673f746f6b656e3d4d4e3642454447555932)](https://codecov.io/github/elninotech/LinkedIn-API-client)[![Latest Stable Version](https://camo.githubusercontent.com/597560a2cb5a9a64b967d1a85c1b908ad4c6913f012b78eee8356cfc4e1080e3/68747470733a2f2f706f7365722e707567782e6f72672f656c6e696e6f746563682f6c696e6b6564696e2d6170692d636c69656e742f76)](https://packagist.org/packages/elninotech/linkedin-api-client)[![Total Downloads](https://camo.githubusercontent.com/f54ef61f906ee087aa33c8fe095dae334348ab670d0a2cacb9ea04d33363f4d5/68747470733a2f2f706f7365722e707567782e6f72672f656c6e696e6f746563682f6c696e6b6564696e2d6170692d636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/elninotech/linkedin-api-client/stats)

A PHP library to handle authentication and communication with LinkedIn API. The library/SDK helps you to get an access token and when authenticated it helps you to send API requests. You will not get *everything* for free though... You have to read the [LinkedIn documentation](https://learn.microsoft.com/en-us/linkedin/shared/api-guide/concepts) to understand how you should query the API.

To get an overview what this library actually is doing for you. Take a look at the authentication page from the [API docs](https://learn.microsoft.com/en-us/linkedin/shared/authentication/authentication).

Features
--------

[](#features)

Here is a list of features that might convince you to choose this LinkedIn client over some of our competitors'.

- Flexible and easy to extend
- Developed with modern PHP standards
- Not developed for a specific framework.
- Handles the authentication process
- Respects the CSRF protection

Installation
------------

[](#installation)

First, install Linkedin-API-client via the [Composer](https://getcomposer.org/) package manager:

```
composer require elninotech/linkedin-api-client
```

Ensure that the `php-http/discovery` composer plugin is allowed to run or install a client manually if your project does not already have a PSR-18 client integrated.

```
composer require guzzlehttp/guzzle
```

If you are updating from a previous version, make sure to read [the upgrade documentation](Upgrade.md).

Usage
-----

[](#usage)

In order to use this API client (or any other LinkedIn clients), you have to [register your application](https://www.linkedin.com/developers/apps)with LinkedIn to receive an API key. Once you've registered your LinkedIn app, you will be provided with an *API Key* and *Secret Key*.

### LinkedIn login

[](#linkedin-login)

This example below is showing how to login with LinkedIn.

```
