PHPackages                             lightit/linkedin-share - 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. [API Development](/categories/api)
4. /
5. lightit/linkedin-share

ActiveLibrary[API Development](/categories/api)

lightit/linkedin-share
======================

This package allows you to easily share content on Likedin, using the v2 API.

145.9k4[5 issues](https://github.com/Light-it-labs/laravel-linkedin-share/issues)PHP

Since Feb 20Pushed 7y ago3 watchersCompare

[ Source](https://github.com/Light-it-labs/laravel-linkedin-share)[ Packagist](https://packagist.org/packages/lightit/linkedin-share)[ RSS](/packages/lightit-linkedin-share/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (4)Used By (0)

Linkedin Share v2 API Integration for Laravel
=============================================

[](#linkedin-share-v2-api-integration-for-laravel)

This package allows you to share content in Linkedin with the v2 API

Installation on Laravel
-----------------------

[](#installation-on-laravel)

You can install this package via composer:

```
composer require lightit/linkedin-share
```

In Laravel 5.5 the service provider will automatically get registered. In older versions of the Laravel you should add the service provider to the config/app.php file:

```
'providers' => [
    // ...
    Lightit\LinkedinShare\LinkedinShareServiceProvider::class,
];
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Lightit\LinkedinShare\LinkedinShareServiceProvider" --tag="linkedin-share"
```

After publishing the config file, you should declare the following variables in your .env file.

```
LINKEDIN_SHARE_REDIRECT_URI={your_redirect_uri}
LINKEDIN_SHARE_CLIENT_ID={your_client_id}
LINKEDIN_SHARE_CLIENT_SECRET={your_client_secret}
```

Sharing content
---------------

[](#sharing-content)

You will need the user authentication code ($code) to be able to share content in behalf of the user, you will probabily get this code from the fornt-end of your application.

### Sharing text

[](#sharing-text)

```
LinkedinShare::shareNone($code, $text);
```

### Sharing images

[](#sharing-images)

```
LinkedinShare::shareImage($code, $image, $text);
```

### Sharing links

[](#sharing-links)

```
LinkedinShare::shareArticle($code, $url, $text);
```

Sharing content with access\_token
----------------------------------

[](#sharing-content-with-access_token)

If you prefere to share content using the user access\_token, you should include an optional parameter to the share functions. Example:

```
LinkedinShare::shareNone($access_token, $text, 'access_token');
```

Extra functionality
-------------------

[](#extra-functionality)

### Getting access token from authentication code

[](#getting-access-token-from-authentication-code)

```
LinkedinShare::getAccessToken($code)
```

About Lightit
-------------

[](#about-lightit)

[Light-it](https://lightit.io) is a software development company with offices in Uruguay and Paraguay.

[![alt text](https://camo.githubusercontent.com/5770a240bef517a525d7ef91cec21011326d556bd1f7775c277c6fcb5bf4a8af/68747470733a2f2f6c6967687469742e696f2f696d616765732f736f6c6f2d6c6f676f2e706e67)](https://camo.githubusercontent.com/5770a240bef517a525d7ef91cec21011326d556bd1f7775c277c6fcb5bf4a8af/68747470733a2f2f6c6967687469742e696f2f696d616765732f736f6c6f2d6c6f676f2e706e67)

License
-------

[](#license)

This project and the Laravel framework are open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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://www.gravatar.com/avatar/538e0eddceaf8ef997aa64ff8e0147085f12c23eced919b2291339a693f62814?d=identicon)[alanbrande](/maintainers/alanbrande)

---

Top Contributors

[![alanbrande](https://avatars.githubusercontent.com/u/16725715?v=4)](https://github.com/alanbrande "alanbrande (12 commits)")[![niklaz](https://avatars.githubusercontent.com/u/1068827?v=4)](https://github.com/niklaz "niklaz (1 commits)")

---

Tags

laravellinkedinlinkedin-apilinkedin-api-v2linkedin-sharephp

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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