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 2w 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 13% 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://avatars.githubusercontent.com/u/1309529?v=4)[Copify](/maintainers/copify)[@copify](https://github.com/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

[mattketmo/email-checker

Throwaway email detection library

2752.1M5](/packages/mattketmo-email-checker)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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