PHP code example of abenevaut / laravel-linkedin-client

1. Go to this page and download the library: Download abenevaut/laravel-linkedin-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

abenevaut / laravel-linkedin-client example snippets


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

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)