PHPackages                             lscarneiro/linkedin-php-sdk - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. lscarneiro/linkedin-php-sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

lscarneiro/linkedin-php-sdk
===========================

PHP LinkedIn SDK

1.1.0(12y ago)010MITPHPPHP &gt;=5.3.0

Since Nov 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lscarneiro/PHP-LinkedIn-SDK)[ Packagist](https://packagist.org/packages/lscarneiro/linkedin-php-sdk)[ Docs](https://github.com/ashwinks/PHP-LinkedIn-SDK)[ RSS](/packages/lscarneiro-linkedin-php-sdk/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

PHP-LinkedIn-SDK
================

[](#php-linkedin-sdk)

A PHP wrapper for the LinkedIn API

Here's a quick way to get started with this wrapper:
----------------------------------------------------

[](#heres-a-quick-way-to-get-started-with-this-wrapper)

Instantiate our class

```
$li = new LinkedIn(
  array(
    'api_key' => 'yourapikey',
    'api_secret' => 'yourapisecret',
    'callback_url' => 'https://yourdomain.com/redirecthere'
  )
);
```

Get the login URL - this accepts an array of SCOPES

```
$url = $li->getLoginUrl(
  array(
    LinkedIn::SCOPE_BASIC_PROFILE,
    LinkedIn::SCOPE_EMAIL_ADDRESS,
    LinkedIn::SCOPE_NETWORK
  )
);
```

LinkedIn will redirect to 'callback\_url' with an access token as the 'code' parameter. You might want to store the token in your session so the user doesn't have to log in again

```
$token = $li->getAccessToken($_REQUEST['code']);
$token_expires = $li->getAccessTokenExpiration();
```

Make a request to the API

```
$info = $li->get('/people/~:(first-name,last-name,positions)');
```

Overwrite curl options :

```
$li = new LinkedIn(
  array(
    'api_key' => 'yourapikey',
    'api_secret' => 'yourapisecret',
    'callback_url' => 'https://yourdomain.com/redirecthere',
    'curl_options' => array(
        CURLOPT_PROXY => '127.0.0.1:80',
    ),
  )
);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~35 days

Total

4

Last Release

4450d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eeb1fd7ba0913340e70f178df57b5665fc7897febdc02ed115ed24033e8266ab?d=identicon)[lscarneiro](/maintainers/lscarneiro)

---

Top Contributors

[![teedot-ashwin](https://avatars.githubusercontent.com/u/5694960?v=4)](https://github.com/teedot-ashwin "teedot-ashwin (8 commits)")[![ashwinks](https://avatars.githubusercontent.com/u/382665?v=4)](https://github.com/ashwinks "ashwinks (5 commits)")[![tseho](https://avatars.githubusercontent.com/u/1421130?v=4)](https://github.com/tseho "tseho (3 commits)")[![ariponce](https://avatars.githubusercontent.com/u/1083390?v=4)](https://github.com/ariponce "ariponce (2 commits)")[![JaffParker](https://avatars.githubusercontent.com/u/10477757?v=4)](https://github.com/JaffParker "JaffParker (1 commits)")[![lscarneiro](https://avatars.githubusercontent.com/u/5758534?v=4)](https://github.com/lscarneiro "lscarneiro (1 commits)")[![mhmaguire](https://avatars.githubusercontent.com/u/1463609?v=4)](https://github.com/mhmaguire "mhmaguire (1 commits)")[![antongorodezkiy](https://avatars.githubusercontent.com/u/580599?v=4)](https://github.com/antongorodezkiy "antongorodezkiy (1 commits)")[![twlescarneiro](https://avatars.githubusercontent.com/u/60887575?v=4)](https://github.com/twlescarneiro "twlescarneiro (1 commits)")[![antriver](https://avatars.githubusercontent.com/u/251159?v=4)](https://github.com/antriver "antriver (1 commits)")[![cbaldwin74](https://avatars.githubusercontent.com/u/6810377?v=4)](https://github.com/cbaldwin74 "cbaldwin74 (1 commits)")[![HelloAllan](https://avatars.githubusercontent.com/u/2149144?v=4)](https://github.com/HelloAllan "HelloAllan (1 commits)")

---

Tags

apirestapi clientlinkedin

### Embed Badge

![Health badge](/badges/lscarneiro-linkedin-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/lscarneiro-linkedin-php-sdk/health.svg)](https://phpackages.com/packages/lscarneiro-linkedin-php-sdk)
```

###  Alternatives

[linkedinapi/linkedin

PHP LinkedIn SDK

96357.1k4](/packages/linkedinapi-linkedin)[wrapi/slack

Wrapper for Slack Web API

56272.3k2](/packages/wrapi-slack)[artesaos/laravel-linkedin

Linkedin API integration for Laravel and Lumen 5

5666.5k](/packages/artesaos-laravel-linkedin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
