abenevaut / laravel-linkedin-client
Laravel Http Client Infrastructure
0.0.1
2025-02-26 23:07 UTC
Requires
- php: ^8.3
- abenevaut/laravel-client-infrastructure: ^0.0.2
- abenevaut/laravel-infrastructure: ^0.4.0
- illuminate/container: ^11.41
Requires (Dev)
- fakerphp/faker: ^1.24
- illuminate/http: ^11
- mockery/mockery: ^1.6
- nikic/php-parser: ^5.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^3.11
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)