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

ActiveLibrary[API Development](/categories/api)

mediadesk/linkedin-manager
==========================

LinkedIn API Wrapper for Laravel

1.0.1(2y ago)310MITPHPPHP &gt;=8.1

Since Aug 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Mediadesk/LinkedinManager)[ Packagist](https://packagist.org/packages/mediadesk/linkedin-manager)[ RSS](/packages/mediadesk-linkedin-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Linkedin Manager (Beta)
=======================

[](#linkedin-manager-beta)

LinkedIn Integration Package for Laravel (Unofficial Package)

This package provides integration with the LinkedIn API for Laravel applications. It allows you to perform various LinkedIn-related tasks such as authenticating users, retrieving profiles, creating and deleting posts, and more.

**Please Note:** This package is currently in active development and should be used with caution. While we are working hard to ensure stability and functionality, there might be frequent updates and changes that could impact your usage.

Important: Business Developer Account Requirement
-------------------------------------------------

[](#important-business-developer-account-requirement)

Creating and managing accounts on behalf of another user requires a Business Developer account on LinkedIn. Make sure you have the necessary permissions and access before using this feature.

Get Started
-----------

[](#get-started)

> **Requires [PHP 8.1+](https://php.net/releases/)**

To get started with the LinkedinManager package, follow these steps:

Install the package using Composer:

```
composer require mediadesk/linkedin-manager
```

Publish Config File
-------------------

[](#publish-config-file)

To customize the configuration settings of the Mediadesk Linkedin Manager package, you can publish the config file using the following Artisan command:

```
php artisan vendor:publish --tag=mediadesk-linkedin
```

Configuration
-------------

[](#configuration)

Ensure the following environment variables are set in your .env file:

```
LINKEDIN_CLIENT_ID=
LINKEDIN_CLIENT_SECRET=
LINKEDIN_CALLBACK=
```

Usage
-----

[](#usage)

Creating Login URL
------------------

[](#creating-login-url)

To create a login URL for LinkedIn authentication, make sure to add the callback URI to your LinkedIn Developer application. Then, use the following code:

```
$linkedin_agent = new LinkedinAgent();
$loginUrl       = $linkedin_agent->getLoginUrl();
```

Generating Access Token
-----------------------

[](#generating-access-token)

Generate an access token from the callback URL. You will receive the code and state in the URL parameters. Use the following code:

```
$linkedin_agent = new LinkedinAgent();
$access_token   = $linkedin_agent->getAccessToken($code, $state);
```

Managing User Profiles
----------------------

[](#managing-user-profiles)

Retrieve user profile information, including member ID, name, and profile image, using the following code:

```
$linkedin_profile = $linkedin_agent->getProfile($access_token);
$member_id        = $linkedin_profile->getMemberId();
$name             = $linkedin_profile->getName();
$profile_image    = $linkedin_profile->getProfileImage();
```

Creating Text Posts
-------------------

[](#creating-text-posts)

Create a text-only post on LinkedIn using the following code:

```
$linkedin_agent->createTextPost('Hello world!', $member_id, $access_token);
```

Creating Posts with Media
-------------------------

[](#creating-posts-with-media)

To create a post with media, you'll need to register the media and then upload it. Here's how:

```
$image_register   = (new LinkedinMediaRegister($member_id))->register($access_token);
$media_id         = $linkedin_agent->uploadMedia($image_register, '/path/to/media/file', $access_token);
$LinkedinMedia[]  = $linkedin_agent->LinkedinMedia('Cat', 'Working on iOS', $media_id);

$linkedin_agent->createPostWithMedia('Wow, a beautiful cat here!', $LinkedinMedia, $member_id, $access_token);
```

Deleting a Post
---------------

[](#deleting-a-post)

Delete a post using the following code:

```
$linkedin_agent->deletePost($post_id, $access_token);
```

Contributing
------------

[](#contributing)

Contributions are welcome! If you encounter any issues or have suggestions, please open an issue.

License
-------

[](#license)

Linkedin Manager is an open-sourced software licensed under the **[MIT license](https://opensource.org/licenses/MIT)**.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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.

###  Release Activity

Cadence

Every ~4 days

Total

2

Last Release

979d ago

### Community

Maintainers

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

---

Top Contributors

[![ppranav164](https://avatars.githubusercontent.com/u/20520086?v=4)](https://github.com/ppranav164 "ppranav164 (18 commits)")[![Mediadesk](https://avatars.githubusercontent.com/u/142146101?v=4)](https://github.com/Mediadesk "Mediadesk (9 commits)")

---

Tags

phplaravelsociallinkedinsocial media

### Embed Badge

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

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

###  Alternatives

[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162145.5k1](/packages/joisarjignesh-bigbluebutton)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)[madeitbelgium/wordpress-php-sdk

WordPress Laravel PHP SDK

4422.9k1](/packages/madeitbelgium-wordpress-php-sdk)[dystcz/lunar-api

Dystore API layer for Lunar e-commerce package

411.1k3](/packages/dystcz-lunar-api)[gufy/whmcs

WHMCS API for Laravel 5

211.7k](/packages/gufy-whmcs)

PHPackages © 2026

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