PHP code example of linkedin-laravel / linkedin-update

1. Go to this page and download the library: Download linkedin-laravel/linkedin-update 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/ */

    

linkedin-laravel / linkedin-update example snippets


'providers' => [
    // ...
    Lightit\LinkedinShare\LinkedinShareServiceProvider::class,
];

LINKEDIN_SHARE_REDIRECT_URI={your_redirect_uri}
LINKEDIN_SHARE_CLIENT_ID={your_client_id}
LINKEDIN_SHARE_CLIENT_SECRET={your_client_secret}

LinkedinShare::shareNone($code, $text);

LinkedinShare::shareImage($code, $image, $text);

LinkedinShare::shareArticle($code, $url, $text);

LinkedinShare::shareNone($access_token, $text, 'access_token');

LinkedinShare::getAccessToken($code)
bash
php artisan vendor:publish --provider="Lightit\LinkedinShare\LinkedinShareServiceProvider" --tag="linkedin-share"