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

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

fabian/linkedin-nette
=====================

LinkedIn authorization for Nette framework

95606[1 issues](https://github.com/fabiancz/linkedin-nette/issues)[1 PRs](https://github.com/fabiancz/linkedin-nette/pulls)PHP

Since Oct 21Pushed 9y ago5 watchersCompare

[ Source](https://github.com/fabiancz/linkedin-nette)[ Packagist](https://packagist.org/packages/fabian/linkedin-nette)[ RSS](/packages/fabian-linkedin-nette/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Instalation
===========

[](#instalation)

The best way is via [Composer](http://getcomposer.org/):

```
composer require fabian/linkedin-nette:dev-master

```

Usage
=====

[](#usage)

- [register LinkedIn app](https://www.linkedin.com/secure/developer)
- add credentials to your config.neon:

```
linkedin:
    appId: "YOUR_API_KEY"
    appSecret: "YOUR_API_SECRET"
    permissions: [r_fullprofile, r_emailaddress]

```

and extension:

```
extensions:
    linkedin: \Fabian\Linkedin\LinkedinExtension

```

- in your BasePresenter inject LinkedIn extension:

```
/**
 * @var \Fabian\Linkedin\Linkedin
 */
private $linkedin;

public function __construct(\Fabian\Linkedin\Linkedin $linkedin)
{
    parent::__construct();
    $this->linkedin = $linkedin;
}
```

- and create component handling login operations:

```
protected function createComponentLinkedinLogin()
{
    $dialog = $this->linkedin->createDialog();
    /** @var \Fabian\Linkedin\LoginDialog $dialog */

    $dialog->onResponse[] = function(\Fabian\Linkedin\LoginDialog $dialog) {
        $me = $this->linkedin->call(
            'people/~:(id,first-name,last-name,email-address)'
        );

        // if user is not found in your database, register new based on LinkedIn profile details
        if (!$existing = $this->usersModel->findByLinkedinId($me->id)) {
            $existing = $this->usersModel->registerFromLinkedin((array) $me);
        }

        $this->user->login(new \Nette\Security\Identity($existing->users_id, $existing->role, $existing));
    };

    return $dialog;
}
```

- place LinkedIn login in your template:

```
Login by LinkedIn
```

Inspired by [Kdyby\\Facebook](https://github.com/kdyby/facebook)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% of commits — single point of failure

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1045330?v=4)[fabiancz](/maintainers/fabiancz)[@fabiancz](https://github.com/fabiancz)

---

Top Contributors

[![fabiancz](https://avatars.githubusercontent.com/u/1045330?v=4)](https://github.com/fabiancz "fabiancz (10 commits)")[![fprochazka](https://avatars.githubusercontent.com/u/158625?v=4)](https://github.com/fprochazka "fprochazka (1 commits)")

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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