linkedinapi/linkedin
Composer 安装命令:
composer require linkedinapi/linkedin
包简介
PHP LinkedIn SDK
关键字:
README 文档
README
**** Would someone like to take over this project? Unfortunatley I haven't worked on any projects that require LinkedIn data in a couple years. Because of that, it's hard to find the time to test pull requests and keep up to date w/ LI's API. ****
PHP-LinkedIn-SDK
A PHP wrapper for the LinkedIn API
Here's a quick way to get started with this wrapper:
Instantiate our class
$li = new LinkedIn( array( 'api_key' => 'yourapikey', 'api_secret' => 'yourapisecret', 'callback_url' => 'https://yourdomain.com/redirecthere' ) );
Get the login URL - this accepts an array of SCOPES
$url = $li->getLoginUrl( array( LinkedIn::SCOPE_BASIC_PROFILE, LinkedIn::SCOPE_EMAIL_ADDRESS, LinkedIn::SCOPE_NETWORK ) );
LinkedIn will redirect to 'callback_url' with an access token as the 'code' parameter. You might want to store the token in your session so the user doesn't have to log in again
$token = $li->getAccessToken($_REQUEST['code']); $token_expires = $li->getAccessTokenExpiration();
Make a request to the API
$info = $li->get('/people/~:(first-name,last-name,positions)');
Overwrite curl options :
$li = new LinkedIn( array( 'api_key' => 'yourapikey', 'api_secret' => 'yourapisecret', 'callback_url' => 'https://yourdomain.com/redirecthere', 'curl_options' => array( CURLOPT_PROXY => '127.0.0.1:80', ), ) );
linkedinapi/linkedin 适用场景与选型建议
linkedinapi/linkedin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 406.91k 次下载、GitHub Stars 达 95, 最近一次更新时间为 2013 年 11 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「rest」 「api」 「linkedin」 「api client」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 linkedinapi/linkedin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 linkedinapi/linkedin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 linkedinapi/linkedin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Linkedin API integration for Laravel and Lumen 5
LinkedIn API PHP SDK with OAuth 2.0 & CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.
LinkedIn integration for Social
LinkedIn API PHP SDK with OAuth 2.0 & CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.
A PSR-7 compatible library for making CRUD API endpoints
Api bundle
统计信息
- 总下载量: 406.91k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 100
- 点击次数: 25
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-11-18