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

ActiveLibrary[API Development](/categories/api)

emme-bi/sharing-linkedin
========================

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

115PHP

Since May 28Pushed 4y agoCompare

[ Source](https://github.com/Emme-Bi-Information-Technology/Sharing-LinkedIn)[ Packagist](https://packagist.org/packages/emme-bi/sharing-linkedin)[ RSS](/packages/emme-bi-sharing-linkedin/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)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 emme-bi/sharing-linkedin
```

```
You can publish the config file with:
```bash
php artisan vendor:publish --provider="EmmeBi\SharingLinkedin\SharingLinkedinServiceProvider" --tag="SharingLinkedin"

```

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

```
SHARING_LINKEDIN_REDIRECT_URI={your_redirect_uri}
SHARING_LINKEDIN_CLIENT_ID={your_client_id}
SHARING_LINKEDIN_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)

[Emme-Bi Information Technology](https://www.emme-bi.com) is a software development company with offices in Italy.

[![alt text](https://camo.githubusercontent.com/14a0d7737df2a9eae7b52cd01f40014c42a09fd248cc376c2c4c75a7da167e1b/68747470733a2f2f7777772e656d6d652d62692e636f6d2f66726f6e74656e642f696d672f6c6f676f2d64656661756c742e706e67)](https://camo.githubusercontent.com/14a0d7737df2a9eae7b52cd01f40014c42a09fd248cc376c2c4c75a7da167e1b/68747470733a2f2f7777772e656d6d652d62692e636f6d2f66726f6e74656e642f696d672f6c6f676f2d64656661756c742e706e67)

License
-------

[](#license)

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

----------------------------------------------------------------------------

[](#httpsartisanswebnetshare-post-on-linkedin-using-linkedin-api-and-php)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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/691507d3eecd61e35156dc5deeefa9d841c9196edd76f8da7effebffb6076802?d=identicon)[MauroBonaldo](/maintainers/MauroBonaldo)

---

Top Contributors

[![Emme-Bi](https://avatars.githubusercontent.com/u/84853194?v=4)](https://github.com/Emme-Bi "Emme-Bi (18 commits)")

### Embed Badge

![Health badge](/badges/emme-bi-sharing-linkedin/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M270](/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.1M452](/packages/google-gax)

PHPackages © 2026

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