redcode / linkedin-api
A PHP implementation of the LinkedIn API with caching ability
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/redcode/linkedin-api
Requires
- php: >=5.4.0
- doctrine/cache: v1.3.0
- linkedinapi/linkedin: 1.1.*
This package is not auto-updated.
Last update: 2025-10-07 21:35:08 UTC
README
This library implements ability of caching all requests to LinkedIn API.
Installation
- Add to you composer.json file the line:
"redcode/linkedin-api": "*",
- Update composer with command:
composer update redcode/linkedin-api
Usage
// lifeTime of cache in seconds $lifeTimeInSeconds = 60 * 60; // any writable dir $cacheDir = '', $api = new RedCode\LinkedIn\LinkedIn([ 'api_key' => '', 'api_secret' => '', 'callback_url' => '' ], new Cache\FilesystemCache($cacheDir), $lifeTimeInSeconds );