PHPackages                             linkedinapi/linkedin - 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. linkedinapi/linkedin

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

linkedinapi/linkedin
====================

PHP LinkedIn SDK

1.1.0(12y ago)96357.1k—1.2%71[14 issues](https://github.com/ashwinks/PHP-LinkedIn-SDK/issues)[2 PRs](https://github.com/ashwinks/PHP-LinkedIn-SDK/pulls)4MITPHPPHP &gt;=5.3.0

Since Nov 18Pushed 6y ago12 watchersCompare

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

READMEChangelogDependenciesVersions (5)Used By (4)

\*\*\*\* Would someone like to take over this project? Unfortunatley I haven't worked on any projects that require LinkedIn data in a couple years. Because of that, it's hard to find the time to test pull requests and keep up to date w/ LI's API. \*\*\*\*

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

43

—

FairBetter than 91% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity53

Moderate usage in the ecosystem

Community31

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

4459d ago

### Community

Maintainers

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

---

Top Contributors

[![ashwinks](https://avatars.githubusercontent.com/u/382665?v=4)](https://github.com/ashwinks "ashwinks (8 commits)")[![teedot-ashwin](https://avatars.githubusercontent.com/u/5694960?v=4)](https://github.com/teedot-ashwin "teedot-ashwin (8 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)")[![mhmaguire](https://avatars.githubusercontent.com/u/1463609?v=4)](https://github.com/mhmaguire "mhmaguire (1 commits)")[![HelloAllan](https://avatars.githubusercontent.com/u/2149144?v=4)](https://github.com/HelloAllan "HelloAllan (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)")[![antongorodezkiy](https://avatars.githubusercontent.com/u/580599?v=4)](https://github.com/antongorodezkiy "antongorodezkiy (1 commits)")

---

Tags

apirestapi clientlinkedin

### Embed Badge

![Health badge](/badges/linkedinapi-linkedin/health.svg)

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

###  Alternatives

[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)
