PHPackages                             khaninejad/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. khaninejad/linkedin

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

khaninejad/linkedin
===================

This package used for send message using laravel notification service

30PHP

Since Apr 17Pushed 8y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Linkedin notification channel for Laravel 5.3+
==============================================

[](#linkedin-notification-channel-for-laravel-53)

This package makes it easy to send notifications using [Linkedin](https://www.linkedin.com/developer/apps) with Laravel 5.3+.

Contents
--------

[](#contents)

- [Installation](#installation)
- [Setting up the Linkedin service](#setting-up-the-linkedin-service)
- [Usage](#usage)
    - [Publish post update](#publish-linkedin-status-update)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Installation
------------

[](#installation)

You can install this package via composer:

```
composer require khaninejad/linkedin@dev-master
```

Next add the service provider to your `config/app.php`:

```
...
'providers' => [
	...
	 khaninejad\linkedin\LinkedinServiceProvider::class,
],
...
```

### Setting up the Linkedin service

[](#setting-up-the-linkedin-service)

You will need to [create](https://www.linkedin.com/developer/apps) a Linkedin app in order to use this channel. Within in this app you will find the `keys and access tokens`. Place them inside your `.env` file. In order to load them, add this to your `config/services.php` file:

```
...
'linkedin' => [
	'client_id'    => env('LINKEDIN_KEY'),
	'client_secret' => env('LINKEDIN_SECRET'),
	'redirect'    => env('LINKEDIN_REDIRECT_URI'),
	'access_token'   => env('LINKEDIN_Access_TOKEN')
]
...
```

This will load the Linkedin app data from the `.env` file. Make sure to use the same keys you have used there like `LINKEDIN_KEY`.

Usage
-----

[](#usage)

Follow Laravel's documentation to add the channel to your Notification class.

### Publish Linkedin status update

[](#publish-linkedin-status-update)

```
use khaninejad\linkedin\LinkedinChannel;
use khaninejad\linkedin\LinkedinMessage;

class NewsWasPublished extends Notification
{

    /**
     * Get the notification's delivery channels.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function via($notifiable)
    {
        return [LinkedinChannel::class];
    }

    public function toLinkedin($notifiable)
    {
        return new LinkedinMessage('Laravel notifications are awesome!');
    }
}
```

Take a closer look at the `StatusUpdate` object. This is where the magic happens.

```
public function toLinkedin($notifiable)
{
    return new LinkedinMessage('Laravel notifications are awesome!');
}
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please use the issue tracker.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [happyr/linkedin-api-client](https://github.com/Happyr/LinkedIn-API-client)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/41a72969e11bc7d4841bad852e4d1baa7210ff099e1cbdef88b7aab6d65ff721?d=identicon)[copify](/maintainers/copify)

---

Top Contributors

[![khaninejad](https://avatars.githubusercontent.com/u/4404500?v=4)](https://github.com/khaninejad "khaninejad (13 commits)")

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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