abenevaut/laravel-linkedin-client

Laravel Http Client Infrastructure

0.0.1 2025-02-26 23:07 UTC

This package is auto-updated.

Last update: 2025-02-26 23:09:35 UTC


README

Installation

You can install the package via composer:

composer require abenevaut/laravel-linkedin-client

Add Linkedin service to your config/services.php file:

'linkedin' => [
    'baseUrl' => env('LINKEDIN_URL', 'https://api.linkedin.com/v2'),
    'api_key' => env('LINKEDIN_API_KEY'),
    'debug' => env('LINKEDIN_DEBUG', false),
],

Usage

use Abenevaut\Linkedin\Facades\Linkedin;

Linkedin::getClient(): LinkedinClient; // Get the Linkedin client
Linkedin::countGroupMembers(string $groupId): int; // Get the number of members of a group 
Linkedin::countCompanyFollowers(string $companyId): int; // Get the number of followers of a company, like 103381678 (abenevaut.dev)