From eaa09f078341ad6bad99853cc929935cbd7265f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samori=20Bokok=C3=B3?= Date: Thu, 27 Aug 2020 17:14:45 +0200 Subject: [PATCH 01/35] Add New refresh token parameters --- src/AccessToken.php | 93 +++++++++++++++++++++++++++++++++++++++------ 1 file changed, 82 insertions(+), 11 deletions(-) diff --git a/src/AccessToken.php b/src/AccessToken.php index 2d0497d..a341364 100644 --- a/src/AccessToken.php +++ b/src/AccessToken.php @@ -44,28 +44,35 @@ class AccessToken implements \JsonSerializable */ protected $expiresAt; + /** - * AccessToken constructor. - * - * @param string $token - * @param int $expiresAt + * @var string + */ + + protected $refreshToken; + + /** + * @var int */ - public function __construct($token = '', $expiresAt = 0) - { - $this->setToken($token); - $this->setExpiresAt($expiresAt); - } + + protected $refreshTokenExpiresAt; /** * Get token string * * @return string */ + public function getToken() { return $this->token; } + public function getRefreshToken() + { + return $this->refreshToken; + } + /** * Set token string * @@ -79,6 +86,19 @@ public function setToken($token) return $this; } + /** + * Set refresh token string + * + * @param string $refreshToken + * + * @return AccessToken + */ + public function setRefreshToken($refreshToken) + { + $this->refreshToken = $refreshToken; + return $this; + } + /** * The number of seconds remaining, from the time it was requested, before the token will expire. * @@ -89,6 +109,21 @@ public function getExpiresIn() return $this->expiresAt - time(); } + /** + * AccessToken constructor. + * + * @param string $token + * @param string $token + * @param int $expiresAt + */ + public function __construct($token = '', $expiresAt = 0,$refreshToken = '', $refreshTokenExpiresAt = 0 ) + { + $this->setToken($token); + $this->setExpiresAt($expiresAt); + $this->setRefreshToken($refreshToken); + $this->setRefreshTokenExpiresAt($refreshTokenExpiresAt); + } + /** * Set token expiration time * @@ -122,6 +157,16 @@ public function getExpiresAt() return $this->expiresAt; } + /** + * Get Unix epoch time when refresh token will expire + * + * @return int + */ + public function getRefreshTokenExpiresAt() + { + return $this->refreshTokenExpiresAt; + } + /** * Set Unix epoch time when token will expire * @@ -132,9 +177,21 @@ public function getExpiresAt() public function setExpiresAt($expiresAt) { $this->expiresAt = $expiresAt; - return $this; } + /** + * Set Unix epoch time when token will expire + * + * @param int $refreshTokenExpiresAt seconds, unix time + * + + */ + public function setRefreshTokenExpiresAt($refreshTokenExpiresAt) + { + $this->refreshTokenExpiresAt = $refreshTokenExpiresAt; + } + + /** * Convert API response into AccessToken * @@ -173,9 +230,21 @@ public static function fromResponseArray($responseArray) 'Access token expiration date is not specified' ); } + if (!isset($responseArray['refresh_token'])) { + throw new \InvalidArgumentException( + 'Refresh token is not available' + ); + } + if (!isset($responseArray['refresh_token_expires_in'])) { + throw new \InvalidArgumentException( + 'Refresh token expiration date is not specified' + ); + } return new static( $responseArray['access_token'], - $responseArray['expires_in'] + time() + $responseArray['expires_in'] + time(), + $responseArray['refresh_token'], + $responseArray['refresh_token_expires_in'] + time() ); } @@ -187,6 +256,8 @@ public function jsonSerialize() return [ 'token' => $this->getToken(), 'expiresAt' => $this->getExpiresAt(), + 'refreshToken' => $this->getRefreshToken(), + 'refreshTokenExpiresAt' => $this->getRefreshTokenExpiresAt() ]; } } From 832bfe554e26872be8d739262381e75bb2460f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samori=20Bokok=C3=B3?= Date: Thu, 27 Aug 2020 17:15:43 +0200 Subject: [PATCH 02/35] Add method for renewing token from refresh token --- src/Client.php | 53 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 3 deletions(-) diff --git a/src/Client.php b/src/Client.php index 169b58d..5adb0a0 100644 --- a/src/Client.php +++ b/src/Client.php @@ -32,10 +32,16 @@ class Client { /** - * Grant type + * Grant type for authorization code */ const OAUTH2_GRANT_TYPE = 'authorization_code'; + /** + * Gran type for refresh token + */ + + const OAUTH2_REFRESH_TOKEN = 'refresh_token'; + /** * Response type */ @@ -81,7 +87,7 @@ class Client * Default API root URL * string */ - const API_ROOT = 'https://api.linkedin.com/v2/'; + const API_ROOT = 'https://api.linkedin.com/v1/'; /** * API Root URL @@ -299,6 +305,44 @@ public function getAccessToken($code = '') return $this->accessToken; } + /** + * Retrieve Access Token from Previously stored Refresh Token + * If Refresh Token is not provided nor setted, will return null + + * + * @param string $refreshToken + * + * @return \LinkedIn\AccessToken|null + * @throws \LinkedIn\Exception + */ + public function renewTokenFromRefreshToken($refreshToken = '') + { + if (!empty($refreshToken)) { + $uri = $this->buildUrl('accessToken', []); + $guzzle = new GuzzleClient([ + 'headers' => [ + 'Content-Type' => 'application/json', + 'x-li-format' => 'json', + 'Connection' => 'Keep-Alive' + ] + ]); + try { + $response = $guzzle->post($uri, ['form_params' => [ + 'grant_type' => self::OAUTH2_REFRESH_TOKEN, + 'refresh_token' => $refreshToken, + 'client_id' => $this->getClientId(), + 'client_secret' => $this->getClientSecret(), + ]]); + } catch (RequestException $exception) { + throw Exception::fromRequestException($exception); + } + $this->setAccessToken( + AccessToken::fromResponse($response) + ); + } + return $this->accessToken; + } + /** * Convert API response into Array * @@ -555,7 +599,10 @@ public function upload($path) { $headers = $this->getApiHeaders(); unset($headers['Content-Type']); - if (!$this->isUsingTokenParam()) { + //$headers = []; + if ($this->isUsingTokenParam()) { + // + } else { $headers['Authorization'] = 'Bearer ' . $this->accessToken->getToken(); } $guzzle = new GuzzleClient([ From f806872714cd8ad5200afc34d6c3f91e09fbf92d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samori=20Bokok=C3=B3?= Date: Thu, 27 Aug 2020 17:45:32 +0200 Subject: [PATCH 03/35] Restore v2 api URL --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 5adb0a0..228ce1a 100644 --- a/src/Client.php +++ b/src/Client.php @@ -87,7 +87,7 @@ class Client * Default API root URL * string */ - const API_ROOT = 'https://api.linkedin.com/v1/'; + const API_ROOT = 'https://api.linkedin.com/v2/'; /** * API Root URL From 5030acdc09554de1233e987f0fc65041d6482e4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samori=20Bokok=C3=B3?= Date: Fri, 28 Aug 2020 09:30:21 +0200 Subject: [PATCH 04/35] Extract validateResponse methods for codeclimate --- src/AccessToken.php | 64 +++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 37 deletions(-) diff --git a/src/AccessToken.php b/src/AccessToken.php index a341364..3292acc 100644 --- a/src/AccessToken.php +++ b/src/AccessToken.php @@ -13,9 +13,7 @@ * @version GIT: 1.0 * @link http://www.zoonman.com/projects/linkedin-client/ */ - namespace LinkedIn; - /** * Class AccessToken * @@ -23,12 +21,10 @@ */ class AccessToken implements \JsonSerializable { - /** * @var string */ protected $token; - /** * When token will expire. * @@ -43,36 +39,27 @@ class AccessToken implements \JsonSerializable * @var int */ protected $expiresAt; - - /** * @var string */ - protected $refreshToken; - /** * @var int */ - protected $refreshTokenExpiresAt; - /** * Get token string * * @return string */ - public function getToken() { return $this->token; } - public function getRefreshToken() { return $this->refreshToken; } - /** * Set token string * @@ -85,7 +72,6 @@ public function setToken($token) $this->token = $token; return $this; } - /** * Set refresh token string * @@ -98,7 +84,6 @@ public function setRefreshToken($refreshToken) $this->refreshToken = $refreshToken; return $this; } - /** * The number of seconds remaining, from the time it was requested, before the token will expire. * @@ -108,7 +93,6 @@ public function getExpiresIn() { return $this->expiresAt - time(); } - /** * AccessToken constructor. * @@ -123,7 +107,6 @@ public function __construct($token = '', $expiresAt = 0,$refreshToken = '', $ref $this->setRefreshToken($refreshToken); $this->setRefreshTokenExpiresAt($refreshTokenExpiresAt); } - /** * Set token expiration time * @@ -136,7 +119,6 @@ public function setExpiresIn($expiresIn) $this->expiresAt = $expiresIn + time(); return $this; } - /** * Dynamically typecast token object into string * @@ -146,7 +128,6 @@ public function __toString() { return $this->getToken(); } - /** * Get Unix epoch time when token will expire * @@ -156,7 +137,6 @@ public function getExpiresAt() { return $this->expiresAt; } - /** * Get Unix epoch time when refresh token will expire * @@ -166,7 +146,6 @@ public function getRefreshTokenExpiresAt() { return $this->refreshTokenExpiresAt; } - /** * Set Unix epoch time when token will expire * @@ -178,20 +157,16 @@ public function setExpiresAt($expiresAt) { $this->expiresAt = $expiresAt; } - /** * Set Unix epoch time when token will expire * * @param int $refreshTokenExpiresAt seconds, unix time * - */ public function setRefreshTokenExpiresAt($refreshTokenExpiresAt) { $this->refreshTokenExpiresAt = $refreshTokenExpiresAt; } - - /** * Convert API response into AccessToken * @@ -205,7 +180,6 @@ public static function fromResponse($response) Client::responseToArray($response) ); } - /** * Instantiate access token object * @@ -220,44 +194,60 @@ public static function fromResponseArray($responseArray) 'Argument is not array' ); } + self::validateAccessToken($responseArray); + self::validateExpiresIn($responseArray); + self::validateRefreshToken($responseArray); + self::validateRefreshTokenExpiresIn($responseArray); + + return new static( + $responseArray['access_token'], + $responseArray['expires_in'] + time(), + $responseArray['refresh_token'], + $responseArray['refresh_token_expires_in'] + time() + ); + } + private static function validateAccessToken($responseArray) + { if (!isset($responseArray['access_token'])) { throw new \InvalidArgumentException( 'Access token is not available' ); } + } + private static function validateExpiresIn($responseArray) + { if (!isset($responseArray['expires_in'])) { throw new \InvalidArgumentException( 'Access token expiration date is not specified' ); } + } + private static function validateRefreshToken($responseArray) + { if (!isset($responseArray['refresh_token'])) { throw new \InvalidArgumentException( 'Refresh token is not available' ); } + } + private static function validateRefreshTokenExpiresIn($responseArray) + { if (!isset($responseArray['refresh_token_expires_in'])) { throw new \InvalidArgumentException( 'Refresh token expiration date is not specified' ); } - return new static( - $responseArray['access_token'], - $responseArray['expires_in'] + time(), - $responseArray['refresh_token'], - $responseArray['refresh_token_expires_in'] + time() - ); } - /** * Specify data format for json_encode() */ public function jsonSerialize() { return [ - 'token' => $this->getToken(), - 'expiresAt' => $this->getExpiresAt(), - 'refreshToken' => $this->getRefreshToken(), - 'refreshTokenExpiresAt' => $this->getRefreshTokenExpiresAt() + 'token' => $this->getToken(), + 'expiresAt' => $this->getExpiresAt(), + 'refreshToken' => $this->getRefreshToken(), + 'refreshTokenExpiresAt' => $this->getRefreshTokenExpiresAt() ]; } } From 210f8f8365913150e7bf1f2e7006d594ffd13768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samori=20Bokoko=CC=81=20Aparicio?= Date: Sat, 26 Sep 2020 08:02:20 +0200 Subject: [PATCH 05/35] Updating composer.json description --- composer.json | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 41eebdf..7f24e89 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name": "zoonman/linkedin-api-php-client", - "description": "LinkedIn API PHP SDK with OAuth 2.0 & CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.", + "name": "samoritano/linkedin-api-php-client", + "description": "LinkedIn V2 Marketing API PHP SDK with OAuth 2.0 & CSRF support. Can be used for social sign in or sharing on LinkedIn", "type": "library", "keywords": [ "linkedin", "linkedin-client", "linkedin-api", "linkedin-signin", @@ -11,7 +11,7 @@ ], "homepage": "https://github.com/zoonman/linkedin-api-php-client", "require": { - "php": ">=5.6", + "php": ">=7.3", "ext-curl": "*", "guzzlehttp/guzzle": "^6.3" }, @@ -33,13 +33,18 @@ "name": "Daniel J. Post", "homepage": "http://danieljpost.info/", "role": "Developer" + }, + { + "name": "Samori Bokoko", + "homepage": "httpa://bokokode.com/", + "role": "Developer" } + ], "support": { - "docs": "https://www.zoonman.com/projects/linkedin-client/", - "source": "https://github.com/zoonman/linkedin-api-php-client", - "issues": "https://github.com/zoonman/linkedin-api-php-client/issues", - "wiki": "https://github.com/zoonman/linkedin-api-php-client/wiki" + "docs": "https://github.com/samoritano/linkedin-api-php-client/blob/master/README.md", + "source": "https://github.com/samoritano/linkedin-api-php-client", + "issues": "https://github.com/samoritano/linkedin-api-php-client/issues" }, "autoload": { "psr-4": {"LinkedIn\\": "src/"} @@ -52,10 +57,8 @@ }, "archive": { "exclude": [ - "examples", "tests", ".env", - ".travis.yml", "phpunit.xml" ] }, From 38db9b128ccfb3a6e3a6df8e5ae211884e5feaed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samori=20Bokoko=CC=81=20Aparicio?= Date: Sat, 26 Sep 2020 08:03:44 +0200 Subject: [PATCH 06/35] Ignore whole .idea folder --- .gitignore | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index cf690dd..8151c6a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,4 @@ -.idea/**/workspace.xml -.idea/**/tasks.xml -.idea/dictionaries -.idea/**/dataSources/ -.idea/**/dataSources.ids -.idea/**/dataSources.xml -.idea/**/dataSources.local.xml -.idea/**/sqlDataSources.xml -.idea/**/dynamic.xml -.idea/**/uiDesigner.xml -.idea/**/gradle.xml -.idea/**/libraries -.idea/**/mongoSettings.xml +.idea/* *.iws /out/ .idea_modules/ From 402aad84c6979b6c4d0c2ad14b9da21d9381ae4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samori=20Bokoko=CC=81=20Aparicio?= Date: Sat, 26 Sep 2020 08:05:10 +0200 Subject: [PATCH 07/35] Remove russian Readme (sorry, zoonman!) --- README.ru.md | 220 --------------------------------------------------- 1 file changed, 220 deletions(-) delete mode 100644 README.ru.md diff --git a/README.ru.md b/README.ru.md deleted file mode 100644 index 389ebb1..0000000 --- a/README.ru.md +++ /dev/null @@ -1,220 +0,0 @@ -Клиент для работы с LinkedIn API с авторизацией через OAuth 2 написанный на PHP -============================================================ -[![Build Status](https://travis-ci.org/zoonman/linkedin-api-php-client.svg?branch=master)](https://travis-ci.org/zoonman/linkedin-api-php-client) [![Code Climate](https://codeclimate.com/github/zoonman/linkedin-api-php-client/badges/gpa.svg)](https://codeclimate.com/github/zoonman/linkedin-api-php-client) [![Packagist](https://img.shields.io/packagist/dt/zoonman/linkedin-api-php-client.svg)](https://packagist.org/packages/zoonman/linkedin-api-php-client) [![GitHub license](https://img.shields.io/github/license/zoonman/linkedin-api-php-client.svg)](https://github.com/zoonman/linkedin-api-php-client/blob/master/LICENSE.md) - - - -Чтобы быстрее вникнуть, смотри [пример использования](examples/) внутри [index.php](examples/index.php). - - -## Установка - -Установка делается через composer следующей командой - -```bash -composer require zoonman/linkedin-api-php-client -``` - -Также можно добавить `composer.json`. - -Если вы никогда им не пользовались, познакомьтесь на [этой страничке](http://www.phptherightway.com/#composer_and_packagist) -и установите composer. - - -## Использование клиента - -Чтобы начать работать с LinkedIn API, потребуется раздобыть идентификатор клиента (client id) и его секретный ключ (secret). - -Получить их можно на [Портале разработчиков](https://developer.linkedin.com/), для этого зайдите в секцию мои приложения -(My Apps). - - -#### Подключение к проекту - -Установите пакет, там появится каталог vendor, в котором будет autoload.php - это автозагрузчик. - -```php -// ... подлкючить автозагрузчик -include_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'; - -// сделать класс доступным -use LinkedIn\Client; - -// создать новый объект -$client = new Client( - 'LINKEDIN_APP_CLIENT_ID', - 'LINKEDIN_APP_CLIENT_SECRET' -); -``` - -#### Получение локального адреса для перенаправления - -Чтобы начать процесс аутентификации вам необходимо установить адрес для перенаправления. -Вы можете вызвать метод `getRedirectUrl()`, - -```php -$redirectUrl = $client->getRedirectUrl(); -``` - -Вам нужно будет сохранить этот адрес во временное хранилище для текущей сессии. -Вам потребуется этот адрес снова, когда вы будете получать токен. - -```php -$_SESSION['linkedin_redirect_url'] = $redirectUrl; -``` - -#### Установка собственного адреса возврата - -Вы также можете использовать `setRedirectUrl()`, чтобы установить свой обратный адрес. -Не забудьте указать этот адрес в параметрах приложения. - -```php -$client->setRedirectUrl('http://your.domain.tld/path/to/script/'); -``` - -#### Получение адреса для аутентификации - -Для того, чтобы пройти аутентификацию, вам необходимо получить адрес в LinkedIn, -на который нужно перенаправить пользователя. -Этот тот самый адрес, на котором пользователя спрашивают о подтвердении -запрашиваемых прав доступа для приложения. - -```php -// определить области доступа -$scopes = [ - 'r_basicprofile', - 'r_emailaddress', - 'rw_company_admin', - 'w_share', -]; -$loginUrl = $client->getLoginUrl($scopes); // получить адрес -``` - -Теперь нужно перенаправить пользователя на полученный адрес. - - -#### Получение токена - -Чтобы получить токен или маркер доступа, как его иногда называют, -нужно установить обратный адрес ($redirectUrl), который вы сохранили в сессии. - -А затем вызвать получение токена - -```php -$accessToken = $client->getAccessToken($_GET['code']); -``` - -#### Вызов API - -All API calls can be called through simple method: -Вызовы API происходят с помощью простого метода api(), -который принимает 3 параметра: путь вызова, параметры и метод. - -```php -$profile = $client->api( - 'ENDPOINT', - ['parameter name' => 'its value here'], - 'HTTP method like GET for example' -); -``` - -Есть два упрощенных вызова: - -```php -// метод get -$client->get('путь', ['имя параметра' => 'значение']); - -// метод post -$client->post('ENDPOINT', ['param' => 'value']); -``` -#### Примеры - -Получить информацию о профиле - -```php -$profile = $client->get( - 'people/~:(id,email-address,first-name,last-name)' -); -print_r($profile); -``` - -Получить список компаний, в которой владелец токена - администратор. - -```php -$profile = $client->get( - 'companies', - ['is-company-admin' => true] -); -print_r($profile); -``` - -Опубликовать сообщение у себя на странице профиля - -```php -$share = $client->post( - 'people/~/shares', - [ - 'comment' => 'Посмотри, какая классная библиотека для работы с LinkedIn!', - 'content' => [ - 'title' => 'PHP Client for LinkedIn API', - 'description' => 'OAuth 2 flow, composer Package', - 'submitted-url' => 'https://github.com/zoonman/linkedin-api-php-client', - 'submitted-image-url' => 'https://github.com/fluidicon.png', - ], - 'visibility' => [ - 'code' => 'anyone' - ] - ] -); -``` - -Поделиться контентом на тестовой странице компаний - -```php -// Вы можете увидеть сообщение на этой странице -// https://www.linkedin.com/company/devtestco -$companyId = '2414183'; // идентификатор страницы - -$share = $client->post( - 'companies/' . $companyId . '/shares', - [ - 'comment' => 'Checkout this amazing PHP SDK for LinkedIn!', - 'content' => [ - 'title' => 'PHP Client for LinkedIn API', - 'description' => 'OAuth 2 flow, composer Package', - 'submitted-url' => 'https://github.com/zoonman/linkedin-api-php-client', - 'submitted-image-url' => 'https://github.com/fluidicon.png', - ], - 'visibility' => [ - 'code' => 'anyone' - ] - ] -); -``` - -Установить заголовки по умолчанию - -```php -$client->setApiHeaders([ - 'Content-Type' => 'application/json', - 'x-li-format' => 'json', - 'x-li-src' => 'msdk' // например отправить "msdk" чтобы симулировать мобильное SDK -]); -``` - -Изменить корневой адрес для API вызовов - -```php -$client->setApiRoot('https://api.linkedin.com/v2/'); -``` - -## Помощь проекту - -Если вы нашли ошибку и исправили ее, вы всегда можете открыть Pull Request. -У нас есть небольшое требование к качеству кода. -Пожалуйста, следуйте стандарту [PSR](http://www.php-fig.org/psr/) и пишите тесты PHPUnit для вносимых изменений. - -## Лицензия - -[MIT](LICENSE.md) - вы имеете право использовать библиотеку без каких-либо отчислений. -Пожалуйста, указывайте ссылку на данный проекта в своих приложениях. From 8e5e3b77cd15debd099d527b580f9ae70d47d8cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samori=20Bokoko=CC=81=20Aparicio?= Date: Sat, 26 Sep 2020 10:35:44 +0200 Subject: [PATCH 08/35] Update composer links --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7f24e89..a297a3b 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "social", "rest", "api", "client", "social network", "auth", "authorization", "wrapper", "integration", "platform" ], - "homepage": "https://github.com/zoonman/linkedin-api-php-client", + "homepage": "https://github.com/samoritano/linkedin-api-php-client", "require": { "php": ">=7.3", "ext-curl": "*", From 975e317d640f0565464610133613711f87c4ca82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samori=20Bokoko=CC=81=20Aparicio?= Date: Sat, 26 Sep 2020 11:00:36 +0200 Subject: [PATCH 09/35] Update README --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4068822..7651712 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ LinkedIn API Client with OAuth 2 authorization written on PHP ============================================================ -[![Build Status](https://travis-ci.org/zoonman/linkedin-api-php-client.svg?branch=master)](https://travis-ci.org/zoonman/linkedin-api-php-client) [![Code Climate](https://codeclimate.com/github/zoonman/linkedin-api-php-client/badges/gpa.svg)](https://codeclimate.com/github/zoonman/linkedin-api-php-client) [![Packagist](https://img.shields.io/packagist/dt/zoonman/linkedin-api-php-client.svg)](https://packagist.org/packages/zoonman/linkedin-api-php-client) [![GitHub license](https://img.shields.io/github/license/zoonman/linkedin-api-php-client.svg)](https://github.com/zoonman/linkedin-api-php-client/blob/master/LICENSE.md) +[![Build Status](https://travis-ci.org/samoritano/linkedin-api-php-client.svg?branch=master)](https://travis-ci.org/samoritano/linkedin-api-php-client) [![Code Climate](https://codeclimate.com/github/samoritano/linkedin-api-php-client/badges/gpa.svg)](https://codeclimate.com/github/samoritano/linkedin-api-php-client) [![Packagist](https://img.shields.io/packagist/dt/samoritano/linkedin-api-php-client.svg)](https://packagist.org/packages/samoritano/linkedin-api-php-client) [![GitHub license](https://img.shields.io/github/license/samoritano/linkedin-api-php-client.svg)](https://github.com/samoritano/linkedin-api-php-client/blob/master/LICENSE.md) -See [complete example](examples/) inside [index.php](examples/index.php) to get started. +See [complete example](examples/) inside [index.php](examples/index.php) to get started. --> OBSOLETE (This part needs an update) ## Installation @@ -14,7 +14,7 @@ You will need at least PHP 7.3. We match [officially supported](https://www.php. Use [composer](https://getcomposer.org/) package manager to install the lastest version of the package: ```bash -composer require zoonman/linkedin-api-php-client +composer require samoritano/linkedin-api-php-client-v2 ``` Or add this package as dependency to `composer.json`. @@ -31,7 +31,7 @@ This will save you a lot of time and prevent some silly questions. To start working with LinkedIn API, you will need to get application client id and secret. -Go to [LinkedIn Developers portal](https://developer.linkedin.com/) +Go to [LinkedIn Developers portal](https://www.linkedin.com/developers/) and create new application in section My Apps. Save ClientId and ClientSecret, you will use them later. @@ -177,13 +177,13 @@ print_r($profile); ```php $profile = $client->get( - 'organizations', - ['is-company-admin' => true] + 'organizationalEntityAcls', + ['q' => 'roleAssignee'] ); print_r($profile); ``` -##### Share content on a personal profile +##### Share content on a personal profile --> OBSOLETE (This part needs an update) Make sure that image URL is available from the Internet (don't use localhost in the image url). @@ -205,7 +205,7 @@ $share = $client->post( 'description' => [ 'text' => 'OAuth 2 flow, composer Package.' ], - 'originalUrl' => 'https://github.com/zoonman/linkedin-api-php-client', + 'originalUrl' => 'https://github.com/samoritano/linkedin-api-php-client', 'title' => [ 'text' => 'PHP Client for LinkedIn API' ] @@ -229,7 +229,7 @@ $companyInfo = $client->get('organizations/' . $companyId); print_r($companyInfo); ``` -##### Share content on a LinkedIn business page +##### Share content on a LinkedIn business page --> OBSOLETE (This part needs an update) ```php // set sandboxed company page to work with @@ -254,7 +254,7 @@ $share = $client->post( 'description' => [ 'text' => 'OAuth 2 flow, composer Package.' ], - 'originalUrl' => 'https://github.com/zoonman/linkedin-api-php-client', + 'originalUrl' => 'https://github.com/samoritano/linkedin-api-php-client', 'title' => [ 'text' => 'PHP Client for LinkedIn API' ] @@ -291,12 +291,12 @@ Some private API access there. $client->setApiRoot('https://api.linkedin.com/v2/'); ``` -##### ~Image Upload~ +##### ~Image Upload~ --> OBSOLETE (This part needs an update) I assume you have to be LinkedIn partner or something like that. Try to upload image to LinkedIn. See [Rich Media Shares](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/rich-media-shares) -(returns "Not enough permissions to access media resource" for me). + ```php $filename = '/path/to/image.jpg'; From 2d25a96855758976bcd878f8547f31ae445566bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samori=20Bokoko=CC=81=20Aparicio?= Date: Sat, 26 Sep 2020 11:04:40 +0200 Subject: [PATCH 10/35] Modify author in composer.json --- composer.json | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index a297a3b..dce769d 100644 --- a/composer.json +++ b/composer.json @@ -17,6 +17,12 @@ }, "license": "MIT", "authors": [ + { + "name": "Samori Bokoko", + "email": "samori@bokokode.com", + "homepage": "https://bokokode.com/", + "role": "Developer" + }, { "name": "Philipp Tkachev", "email": "philipp@zoonman.com", @@ -33,11 +39,6 @@ "name": "Daniel J. Post", "homepage": "http://danieljpost.info/", "role": "Developer" - }, - { - "name": "Samori Bokoko", - "homepage": "httpa://bokokode.com/", - "role": "Developer" } ], From ff9d6d1273eded70c5a8a4a8f0d471337037bde0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samori=20Bokoko=CC=81=20Aparicio?= Date: Thu, 14 Jan 2021 21:31:02 +0100 Subject: [PATCH 11/35] Update README file --- README.md | 91 ++++--------------------------------------------------- 1 file changed, 6 insertions(+), 85 deletions(-) diff --git a/README.md b/README.md index 7651712..8747441 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,6 @@ LinkedIn API Client with OAuth 2 authorization written on PHP ============================================================ -[![Build Status](https://travis-ci.org/samoritano/linkedin-api-php-client.svg?branch=master)](https://travis-ci.org/samoritano/linkedin-api-php-client) [![Code Climate](https://codeclimate.com/github/samoritano/linkedin-api-php-client/badges/gpa.svg)](https://codeclimate.com/github/samoritano/linkedin-api-php-client) [![Packagist](https://img.shields.io/packagist/dt/samoritano/linkedin-api-php-client.svg)](https://packagist.org/packages/samoritano/linkedin-api-php-client) [![GitHub license](https://img.shields.io/github/license/samoritano/linkedin-api-php-client.svg)](https://github.com/samoritano/linkedin-api-php-client/blob/master/LICENSE.md) - - - -See [complete example](examples/) inside [index.php](examples/index.php) to get started. --> OBSOLETE (This part needs an update) +[![Build Status](https://travis-ci.org/samoritano/linkedin-api-php-client.svg?branch=master)](https://travis-ci.org/samoritano/linkedin-api-php-client) [![Code Climate](https://codeclimate.com/github/samoritano/linkedin-api-php-client/badges/gpa.svg)](https://codeclimate.com/github/samoritano/linkedin-api-php-client) [![Packagist](https://img.shields.io/packagist/dt/samoritano/linkedin-api-php-client.svg)](https://packagist.org/packages/samoritano/linkedin-api-php-client-v2) [![GitHub license](https://img.shields.io/github/license/samoritano/linkedin-api-php-client.svg)](https://github.com/samoritano/linkedin-api-php-client/blob/master/LICENSE.md) ## Installation @@ -19,21 +15,18 @@ composer require samoritano/linkedin-api-php-client-v2 Or add this package as dependency to `composer.json`. -If you have never used Composer, you should start [here](http://www.phptherightway.com/#composer_and_packagist) -and install composer. ## Get Started -Before you will get started, play visit to [LinkedIn API Documentation](https://docs.microsoft.com/en-us/linkedin/). +Before you will get started, play visit to [LinkedIn API Documentation](https://docs.microsoft.com/en-us/linkedin/marketing/getting-started). This will save you a lot of time and prevent some silly questions. To start working with LinkedIn API, you will need to get application client id and secret. Go to [LinkedIn Developers portal](https://www.linkedin.com/developers/) -and create new application in section My Apps. -Save ClientId and ClientSecret, you will use them later. +and create new application in section My Apps. Once your app has been approved, you will get a ClientId and ClientSecret, that you will use later. #### Bootstrapping autoloader and instantiating a client @@ -78,6 +71,9 @@ $client->setRedirectUrl('http://your.domain.tld/path/to/script/'); In order of performing OAUTH 2.0 flow, you should get LinkedIn login URL. During this procedure you have to define scope of requested permissions. + +You can read more about Linkedin Api scopes [here](https://docs.microsoft.com/en-us/linkedin/shared/references/migrations/default-scopes-migration). + Use `Scope` enum class to get scope names. To get redirect url to LinkedIn, use the following approach: @@ -183,43 +179,7 @@ $profile = $client->get( print_r($profile); ``` -##### Share content on a personal profile --> OBSOLETE (This part needs an update) -Make sure that image URL is available from the Internet (don't use localhost in the image url). - -```php -$share = $client->post( - 'ugcPosts', - [ - 'author' => 'urn:li:person:' . $profile['id'], - 'lifecycleState' => 'PUBLISHED', - 'specificContent' => [ - 'com.linkedin.ugc.ShareContent' => [ - 'shareCommentary' => [ - 'text' => 'Checkout this amazing PHP SDK for LinkedIn!' - ], - 'shareMediaCategory' => 'ARTICLE', - 'media' => [ - [ - 'status' => 'READY', - 'description' => [ - 'text' => 'OAuth 2 flow, composer Package.' - ], - 'originalUrl' => 'https://github.com/samoritano/linkedin-api-php-client', - 'title' => [ - 'text' => 'PHP Client for LinkedIn API' - ] - ] - ] - ] - ], - 'visibility' => [ - 'com.linkedin.ugc.MemberNetworkVisibility' => 'CONNECTIONS' - ] - ] - ); -print_r($share); -``` ##### Get Company page profile @@ -229,46 +189,7 @@ $companyInfo = $client->get('organizations/' . $companyId); print_r($companyInfo); ``` -##### Share content on a LinkedIn business page --> OBSOLETE (This part needs an update) -```php -// set sandboxed company page to work with -// you can check updates at -// https://www.linkedin.com/company/devtestco -$companyId = '2414183'; - -$share = $client->post( - 'ugcPosts', - [ - 'author' => 'urn:li:organization:' . $companyId, - 'lifecycleState' => 'PUBLISHED', - 'specificContent' => [ - 'com.linkedin.ugc.ShareContent' => [ - 'shareCommentary' => [ - 'text' => 'Checkout this amazing PHP SDK for LinkedIn!' - ], - 'shareMediaCategory' => 'ARTICLE', - 'media' => [ - [ - 'status' => 'READY', - 'description' => [ - 'text' => 'OAuth 2 flow, composer Package.' - ], - 'originalUrl' => 'https://github.com/samoritano/linkedin-api-php-client', - 'title' => [ - 'text' => 'PHP Client for LinkedIn API' - ] - ] - ] - ] - ], - 'visibility' => [ - 'com.linkedin.ugc.MemberNetworkVisibility' => 'PUBLIC' - ] - ] - ); -print_r($share); -``` ##### Setup custom API request headers From 8574cd9185a8ca6a376eb4b3e44cbe1e6e53aafe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samori=20Bokoko=CC=81=20Aparicio?= Date: Thu, 14 Jan 2021 21:31:57 +0100 Subject: [PATCH 12/35] Bump Guzzle to v7 --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index dce769d..5f8230f 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "samoritano/linkedin-api-php-client", - "description": "LinkedIn V2 Marketing API PHP SDK with OAuth 2.0 & CSRF support. Can be used for social sign in or sharing on LinkedIn", + "description": "This package is an SDK for using LinkedIn V2 Marketing API. You can use it for managing Company Pages in this social network", "type": "library", "keywords": [ "linkedin", "linkedin-client", "linkedin-api", "linkedin-signin", @@ -13,12 +13,12 @@ "require": { "php": ">=7.3", "ext-curl": "*", - "guzzlehttp/guzzle": "^6.3" + "guzzlehttp/guzzle": "^7.2" }, "license": "MIT", "authors": [ { - "name": "Samori Bokoko", + "name": "Samori Bokokó", "email": "samori@bokokode.com", "homepage": "https://bokokode.com/", "role": "Developer" From 67c95b7e2e0ca1aeb409864eb8153a860d694e46 Mon Sep 17 00:00:00 2001 From: Carlos Correia Date: Mon, 18 Jan 2021 13:21:50 +0100 Subject: [PATCH 13/35] added parameter raw data for query tunneling --- src/Client.php | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/src/Client.php b/src/Client.php index 228ce1a..1cbd1cc 100644 --- a/src/Client.php +++ b/src/Client.php @@ -515,15 +515,15 @@ protected function buildUrl($endpoint, $params) /** * Perform API call to LinkedIn - * - * @param string $endpoint - * @param array $params + * @param $endpoint + * @param array $params * @param string $method - * + * @param bool $rawData * @return array - * @throws \LinkedIn\Exception + * @throws Exception + * @throws \GuzzleHttp\Exception\GuzzleException */ - public function api($endpoint, array $params = [], $method = Method::GET) + public function api($endpoint, array $params = [], $method = Method::GET, bool $rawData = false) { $headers = $this->getApiHeaders(); $options = $this->prepareOptions($params, $method); @@ -540,6 +540,20 @@ public function api($endpoint, array $params = [], $method = Method::GET) if (!empty($params) && Method::GET === $method) { $endpoint .= '?' . build_query($params); } + + if ($rawData) { + try { + $response = $guzzle->request("POST", $endpoint, [ + "headers" => $headers, + "body" => $params[0] + ]); + } catch (GuzzleException $e) { + throw Exception::fromRequestException($e); + } + return self::responseToArray($response); + } + + try { $response = $guzzle->request($method, $endpoint, $options); } catch (RequestException $requestException) { @@ -563,17 +577,15 @@ public function get($endpoint, array $params = []) } /** - * Make API call to LinkedIn using POST method - * - * @param string $endpoint - * @param array $params - * + * @param $endpoint + * @param array $params + * @param bool $rawData * @return array - * @throws \LinkedIn\Exception + * @throws Exception */ - public function post($endpoint, array $params = []) + public function post($endpoint, array $params = [], bool $rawData = false) { - return $this->api($endpoint, $params, Method::POST); + return $this->api($endpoint, $params, Method::POST, $rawData); } /** From df7758aae0d6500fef6c8b31e2ef200fd24b8dd6 Mon Sep 17 00:00:00 2001 From: Carlos Correia Date: Wed, 27 Jan 2021 21:23:11 +0100 Subject: [PATCH 14/35] Refactor query tunneling --- src/Client.php | 44 +++++++++++++++++--------------------------- 1 file changed, 17 insertions(+), 27 deletions(-) diff --git a/src/Client.php b/src/Client.php index 1cbd1cc..295d61b 100644 --- a/src/Client.php +++ b/src/Client.php @@ -19,6 +19,7 @@ use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Exception\RequestException; +use GuzzleHttp\Psr7\Query; use function GuzzleHttp\Psr7\build_query; use GuzzleHttp\Psr7\Uri; use LinkedIn\Http\Method; @@ -515,18 +516,17 @@ protected function buildUrl($endpoint, $params) /** * Perform API call to LinkedIn - * @param $endpoint - * @param array $params + * + * @param string $endpoint + * @param array $params * @param string $method - * @param bool $rawData + * * @return array - * @throws Exception - * @throws \GuzzleHttp\Exception\GuzzleException + * @throws \LinkedIn\Exception */ - public function api($endpoint, array $params = [], $method = Method::GET, bool $rawData = false) + public function api($endpoint, array $params = [], $method = Method::GET) { $headers = $this->getApiHeaders(); - $options = $this->prepareOptions($params, $method); Method::isMethodSupported($method); if ($this->isUsingTokenParam()) { $params['oauth2_access_token'] = $this->accessToken->getToken(); @@ -541,21 +541,8 @@ public function api($endpoint, array $params = [], $method = Method::GET, bool $ $endpoint .= '?' . build_query($params); } - if ($rawData) { - try { - $response = $guzzle->request("POST", $endpoint, [ - "headers" => $headers, - "body" => $params[0] - ]); - } catch (GuzzleException $e) { - throw Exception::fromRequestException($e); - } - return self::responseToArray($response); - } - - try { - $response = $guzzle->request($method, $endpoint, $options); + $response = $guzzle->request($method, $endpoint, $params); } catch (RequestException $requestException) { throw Exception::fromRequestException($requestException); } @@ -585,7 +572,8 @@ public function get($endpoint, array $params = []) */ public function post($endpoint, array $params = [], bool $rawData = false) { - return $this->api($endpoint, $params, Method::POST, $rawData); + $params = $this->prepareOptions($params, $rawData); + return $this->api($endpoint, $params, Method::POST); } /** @@ -645,15 +633,17 @@ public function upload($path) /** * @param array $params - * @param string $method - * @return mixed + * @param bool $rawData + * @return array */ - protected function prepareOptions(array $params, $method) + protected function prepareOptions(array $params, bool $rawData = false) { $options = []; - if ($method === Method::POST) { - $options['body'] = \GuzzleHttp\json_encode($params); + if ($rawData) { + $options['body'] = Query::build($params, false); + return $options; } + $options['body'] = \GuzzleHttp\json_encode($params); return $options; } } From 5413aa6cff09725b0e4ad5275cd3d2aaa2bec00c Mon Sep 17 00:00:00 2001 From: Carlos Correia Date: Thu, 28 Jan 2021 10:21:08 +0100 Subject: [PATCH 15/35] revert to guzzle v6 --- composer.json | 2 +- src/Client.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 5f8230f..6af81e1 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "require": { "php": ">=7.3", "ext-curl": "*", - "guzzlehttp/guzzle": "^7.2" + "guzzlehttp/guzzle": "^6.3" }, "license": "MIT", "authors": [ diff --git a/src/Client.php b/src/Client.php index 295d61b..418d15a 100644 --- a/src/Client.php +++ b/src/Client.php @@ -19,7 +19,6 @@ use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Exception\RequestException; -use GuzzleHttp\Psr7\Query; use function GuzzleHttp\Psr7\build_query; use GuzzleHttp\Psr7\Uri; use LinkedIn\Http\Method; @@ -640,7 +639,7 @@ protected function prepareOptions(array $params, bool $rawData = false) { $options = []; if ($rawData) { - $options['body'] = Query::build($params, false); + $options['body'] = build_query($params, false); return $options; } $options['body'] = \GuzzleHttp\json_encode($params); From a6663522181c845595ea255e9d82bdfd3affb908 Mon Sep 17 00:00:00 2001 From: nikkig124 Date: Tue, 12 Oct 2021 13:28:34 -0700 Subject: [PATCH 16/35] fix response for empty body --- src/Client.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/Client.php b/src/Client.php index 418d15a..89375d1 100644 --- a/src/Client.php +++ b/src/Client.php @@ -352,10 +352,18 @@ public function renewTokenFromRefreshToken($refreshToken = '') */ public static function responseToArray($response) { - return \GuzzleHttp\json_decode( - $response->getBody()->getContents(), - true - ); + if ($contents = $response->getBody()->getContents()) { + return \GuzzleHttp\json_decode( + $contents, + true + ); + } + + if ($contents = $response->getHeaders()) { + return $contents; + } + + return []; } /** From 58491a3e8908d94b101d8e7bfabd9ec45d2df781 Mon Sep 17 00:00:00 2001 From: nikkig124 Date: Tue, 26 Oct 2021 09:31:28 -0700 Subject: [PATCH 17/35] update repo name --- README.md | 36 ++++++++++++++++++------------------ composer.json | 36 +++++------------------------------- 2 files changed, 23 insertions(+), 49 deletions(-) diff --git a/README.md b/README.md index 8747441..40f28a0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ LinkedIn API Client with OAuth 2 authorization written on PHP ============================================================ -[![Build Status](https://travis-ci.org/samoritano/linkedin-api-php-client.svg?branch=master)](https://travis-ci.org/samoritano/linkedin-api-php-client) [![Code Climate](https://codeclimate.com/github/samoritano/linkedin-api-php-client/badges/gpa.svg)](https://codeclimate.com/github/samoritano/linkedin-api-php-client) [![Packagist](https://img.shields.io/packagist/dt/samoritano/linkedin-api-php-client.svg)](https://packagist.org/packages/samoritano/linkedin-api-php-client-v2) [![GitHub license](https://img.shields.io/github/license/samoritano/linkedin-api-php-client.svg)](https://github.com/samoritano/linkedin-api-php-client/blob/master/LICENSE.md) +[![Build Status](https://travis-ci.org/AgencyPMG/linkedin-api-php-client.svg?branch=master)](https://travis-ci.org/AgencyPMG/linkedin-api-php-client) [![Code Climate](https://codeclimate.com/github/AgencyPMG/linkedin-api-php-client/badges/gpa.svg)](https://codeclimate.com/github/AgencyPMG/linkedin-api-php-client) [![Packagist](https://img.shields.io/packagist/dt/AgencyPMG/linkedin-api-php-client.svg)](https://packagist.org/packages/AgencyPMG/linkedin-api-php-client-v2) [![GitHub license](https://img.shields.io/github/license/AgencyPMG/linkedin-api-php-client.svg)](https://github.com/AgencyPMG/linkedin-api-php-client/blob/master/LICENSE.md) ## Installation @@ -10,7 +10,7 @@ You will need at least PHP 7.3. We match [officially supported](https://www.php. Use [composer](https://getcomposer.org/) package manager to install the lastest version of the package: ```bash -composer require samoritano/linkedin-api-php-client-v2 +composer require AgencyPMG/linkedin-api-php-client-v2 ``` Or add this package as dependency to `composer.json`. @@ -22,10 +22,10 @@ Or add this package as dependency to `composer.json`. Before you will get started, play visit to [LinkedIn API Documentation](https://docs.microsoft.com/en-us/linkedin/marketing/getting-started). This will save you a lot of time and prevent some silly questions. -To start working with LinkedIn API, you will need to -get application client id and secret. +To start working with LinkedIn API, you will need to +get application client id and secret. -Go to [LinkedIn Developers portal](https://www.linkedin.com/developers/) +Go to [LinkedIn Developers portal](https://www.linkedin.com/developers/) and create new application in section My Apps. Once your app has been approved, you will get a ClientId and ClientSecret, that you will use later. @@ -48,7 +48,7 @@ $client = new Client( #### Getting local redirect URL -To start linking process you have to setup redirect url. +To start linking process you have to setup redirect url. You can set your own or use current one. SDK provides you a `getRedirectUrl()` helper for your convenience: @@ -56,10 +56,10 @@ SDK provides you a `getRedirectUrl()` helper for your convenience: $redirectUrl = $client->getRedirectUrl(); ``` -We recommend you to have it stored during the linking session +We recommend you to have it stored during the linking session because you will need to use it when you will be getting access token. -#### Setting local redirect URL +#### Setting local redirect URL Set a custom redirect url use: @@ -67,7 +67,7 @@ Set a custom redirect url use: $client->setRedirectUrl('http://your.domain.tld/path/to/script/'); ``` -#### Getting LinkedIn redirect URL +#### Getting LinkedIn redirect URL In order of performing OAUTH 2.0 flow, you should get LinkedIn login URL. During this procedure you have to define scope of requested permissions. @@ -82,7 +82,7 @@ use LinkedIn\Scope; // define scope $scopes = [ - Scope::READ_LITE_PROFILE, + Scope::READ_LITE_PROFILE, Scope::READ_EMAIL_ADDRESS, Scope::SHARE_AS_USER, Scope::SHARE_AS_ORGANIZATION, @@ -92,20 +92,20 @@ $loginUrl = $client->getLoginUrl($scopes); // get url on LinkedIn to start linki Now you can take user to LinkedIn. You can use link or rely on Location HTTP header. -#### Getting Access Token +#### Getting Access Token To get access token use (don't forget to set redirect url) ```php $accessToken = $client->getAccessToken($_GET['code']); ``` -This method returns object of `LinkedIn\AccessToken` class. +This method returns object of `LinkedIn\AccessToken` class. You can store this token in the file like this: ```php file_put_contents('token.json', json_encode($accessToken)); ``` -This way of storing tokens is not recommended due to security concerns and used for demonstration purpose. -Please, ensure that tokens are stored securely. +This way of storing tokens is not recommended due to security concerns and used for demonstration purpose. +Please, ensure that tokens are stored securely. #### Setting Access Token @@ -118,7 +118,7 @@ use LinkedIn\Client; // instantiate the Linkedin client $client = new Client( - 'LINKEDIN_APP_CLIENT_ID', + 'LINKEDIN_APP_CLIENT_ID', 'LINKEDIN_APP_CLIENT_SECRET' ); @@ -132,7 +132,7 @@ $accessToken = new AccessToken($tokenData['token'], $tokenData['expiresAt']); $client->setAccessToken($accessToken); ``` -#### Performing API calls +#### Performing API calls All API calls can be called through simple method: @@ -217,7 +217,7 @@ $client->setApiRoot('https://api.linkedin.com/v2/'); I assume you have to be LinkedIn partner or something like that. Try to upload image to LinkedIn. See [Rich Media Shares](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/rich-media-shares) - + ```php $filename = '/path/to/image.jpg'; @@ -228,7 +228,7 @@ $mp = $client->upload($filename); ## Contributing Please, open PR with your changes linked to an GitHub issue. -You code must follow [PSR](http://www.php-fig.org/psr/) standards and have PHPUnit tests. +You code must follow [PSR](http://www.php-fig.org/psr/) standards and have PHPUnit tests. ## License diff --git a/composer.json b/composer.json index 6af81e1..8814a64 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "samoritano/linkedin-api-php-client", + "name": "AgencyPMG/linkedin-api-php-client", "description": "This package is an SDK for using LinkedIn V2 Marketing API. You can use it for managing Company Pages in this social network", "type": "library", "keywords": [ @@ -9,43 +9,17 @@ "social", "rest", "api", "client", "social network", "auth", "authorization", "wrapper", "integration", "platform" ], - "homepage": "https://github.com/samoritano/linkedin-api-php-client", + "homepage": "https://github.com/AgencyPMG/linkedin-api-php-client", "require": { "php": ">=7.3", "ext-curl": "*", "guzzlehttp/guzzle": "^6.3" }, "license": "MIT", - "authors": [ - { - "name": "Samori Bokokó", - "email": "samori@bokokode.com", - "homepage": "https://bokokode.com/", - "role": "Developer" - }, - { - "name": "Philipp Tkachev", - "email": "philipp@zoonman.com", - "homepage": "http://www.zoonman.com/", - "role": "Developer" - }, - { - "name": "Aleksey Salnikov", - "email": "me@iamsalnikov.ru", - "homepage": "http://iamsalnikov.ru/", - "role": "Developer" - }, - { - "name": "Daniel J. Post", - "homepage": "http://danieljpost.info/", - "role": "Developer" - } - - ], "support": { - "docs": "https://github.com/samoritano/linkedin-api-php-client/blob/master/README.md", - "source": "https://github.com/samoritano/linkedin-api-php-client", - "issues": "https://github.com/samoritano/linkedin-api-php-client/issues" + "docs": "https://github.com/AgencyPMG/linkedin-api-php-client/blob/master/README.md", + "source": "https://github.com/AgencyPMG/linkedin-api-php-client", + "issues": "https://github.com/AgencyPMG/linkedin-api-php-client/issues" }, "autoload": { "psr-4": {"LinkedIn\\": "src/"} From c98c23f781740b9313205619175db11e2f09e0aa Mon Sep 17 00:00:00 2001 From: nikkig124 Date: Tue, 26 Oct 2021 09:33:45 -0700 Subject: [PATCH 18/35] fix package name --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 8814a64..2dc00e5 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "AgencyPMG/linkedin-api-php-client", + "name": "pmg/linkedin-api-php-client", "description": "This package is an SDK for using LinkedIn V2 Marketing API. You can use it for managing Company Pages in this social network", "type": "library", "keywords": [ From b77271822a0192b0997f0f1e7a163f7f407ec078 Mon Sep 17 00:00:00 2001 From: nikkig124 Date: Tue, 26 Oct 2021 09:50:36 -0700 Subject: [PATCH 19/35] fix readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 40f28a0..cf81e6b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ You will need at least PHP 7.3. We match [officially supported](https://www.php. Use [composer](https://getcomposer.org/) package manager to install the lastest version of the package: ```bash -composer require AgencyPMG/linkedin-api-php-client-v2 +composer require pmg/linkedin-api-php-client ``` Or add this package as dependency to `composer.json`. From c60f2957f6010a9a7f87609a97e123c0ec6c31eb Mon Sep 17 00:00:00 2001 From: nikkig124 Date: Wed, 1 Dec 2021 11:23:38 -0800 Subject: [PATCH 20/35] php8 and guzzle update --- composer.json | 4 +- composer.lock | 2686 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 2688 insertions(+), 2 deletions(-) create mode 100644 composer.lock diff --git a/composer.json b/composer.json index 2dc00e5..70ce0b9 100644 --- a/composer.json +++ b/composer.json @@ -11,9 +11,9 @@ ], "homepage": "https://github.com/AgencyPMG/linkedin-api-php-client", "require": { - "php": ">=7.3", + "php": "^7.4 || ^8.0", "ext-curl": "*", - "guzzlehttp/guzzle": "^6.3" + "guzzlehttp/guzzle": "^7.3.0" }, "license": "MIT", "support": { diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..acfef49 --- /dev/null +++ b/composer.lock @@ -0,0 +1,2686 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "04f6cce28c5c28d094bb6b292b4d8a73", + "packages": [ + { + "name": "guzzlehttp/guzzle", + "version": "7.4.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/868b3571a039f0ebc11ac8f344f4080babe2cb94", + "reference": "868b3571a039f0ebc11ac8f344f4080babe2cb94", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^1.5", + "guzzlehttp/psr7": "^1.8.3 || ^2.1", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "ext-curl": "*", + "php-http/client-integration-tests": "^3.0", + "phpunit/phpunit": "^8.5.5 || ^9.3.5", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.4-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.4.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2021-10-18T09:52:00+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "1.5.1", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "symfony/phpunit-bridge": "^4.4 || ^5.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.5-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/1.5.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2021-10-22T20:56:57+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "1.8.3", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "1afdd860a2566ed3c2b0b4a3de6e23434a79ec85" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/1afdd860a2566ed3c2b0b4a3de6e23434a79ec85", + "reference": "1afdd860a2566ed3c2b0b4a3de6e23434a79ec85", + "shasum": "" + }, + "require": { + "php": ">=5.4.0", + "psr/http-message": "~1.0", + "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" + }, + "provide": { + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "ext-zlib": "*", + "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.7-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + }, + "files": [ + "src/functions_include.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/1.8.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2021-10-05T13:56:00+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client/tree/master" + }, + "time": "2020-06-29T06:28:15+00:00" + }, + { + "name": "psr/http-message", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/master" + }, + "time": "2016-08-06T14:39:51+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.5.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/6f981ee24cf69ee7ce9736146d1c57c2780598a8", + "reference": "6f981ee24cf69ee7ce9736146d1c57c2780598a8", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-07-12T14:48:14+00:00" + } + ], + "packages-dev": [ + { + "name": "composer/xdebug-handler", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/composer/xdebug-handler.git", + "reference": "84674dd3a7575ba617f5a76d7e9e29a7d3891339" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/84674dd3a7575ba617f5a76d7e9e29a7d3891339", + "reference": "84674dd3a7575ba617f5a76d7e9e29a7d3891339", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0", + "psr/log": "^1 || ^2 || ^3" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.55", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Composer\\XdebugHandler\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "John Stevenson", + "email": "john-stevenson@blueyonder.co.uk" + } + ], + "description": "Restarts a process without Xdebug.", + "keywords": [ + "Xdebug", + "performance" + ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/xdebug-handler/issues", + "source": "https://github.com/composer/xdebug-handler/tree/2.0.2" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-07-31T17:03:58+00:00" + }, + { + "name": "doctrine/instantiator", + "version": "1.4.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/instantiator.git", + "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b", + "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^8.0", + "ext-pdo": "*", + "ext-phar": "*", + "phpbench/phpbench": "^0.13 || 1.0.0-alpha2", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-phpunit": "^0.12", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com", + "homepage": "https://ocramius.github.io/" + } + ], + "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "keywords": [ + "constructor", + "instantiate" + ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.4.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], + "time": "2020-11-10T18:47:58+00:00" + }, + { + "name": "pdepend/pdepend", + "version": "2.10.2", + "source": { + "type": "git", + "url": "https://github.com/pdepend/pdepend.git", + "reference": "c8c1d2af43fb8c2b5387d50e9c42a9c56de13686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pdepend/pdepend/zipball/c8c1d2af43fb8c2b5387d50e9c42a9c56de13686", + "reference": "c8c1d2af43fb8c2b5387d50e9c42a9c56de13686", + "shasum": "" + }, + "require": { + "php": ">=5.3.7", + "symfony/config": "^2.3.0|^3|^4|^5", + "symfony/dependency-injection": "^2.3.0|^3|^4|^5", + "symfony/filesystem": "^2.3.0|^3|^4|^5" + }, + "require-dev": { + "easy-doc/easy-doc": "0.0.0|^1.2.3", + "gregwar/rst": "^1.0", + "phpunit/phpunit": "^4.8.36|^5.7.27", + "squizlabs/php_codesniffer": "^2.0.0" + }, + "bin": [ + "src/bin/pdepend" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "PDepend\\": "src/main/php/PDepend" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "Official version of pdepend to be handled with Composer", + "support": { + "issues": "https://github.com/pdepend/pdepend/issues", + "source": "https://github.com/pdepend/pdepend/tree/2.10.2" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/pdepend/pdepend", + "type": "tidelift" + } + ], + "time": "2021-11-16T20:05:32+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "2.0.5", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/e6a969a640b00d8daa3c66518b0405fb41ae0c4b", + "reference": "e6a969a640b00d8daa3c66518b0405fb41ae0c4b", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "suggest": { + "dflydev/markdown": "~1.0", + "erusev/parsedown": "~1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-0": { + "phpDocumentor": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "mike.vanriel@naenius.com" + } + ], + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/release/2.x" + }, + "time": "2016-01-25T08:17:30+00:00" + }, + { + "name": "phpmd/phpmd", + "version": "2.11.0", + "source": { + "type": "git", + "url": "https://github.com/phpmd/phpmd.git", + "reference": "3637949092e6471aeaeca66bc6c016f45e459e24" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpmd/phpmd/zipball/3637949092e6471aeaeca66bc6c016f45e459e24", + "reference": "3637949092e6471aeaeca66bc6c016f45e459e24", + "shasum": "" + }, + "require": { + "composer/xdebug-handler": "^1.0 || ^2.0", + "ext-xml": "*", + "pdepend/pdepend": "^2.10.2", + "php": ">=5.3.9" + }, + "require-dev": { + "easy-doc/easy-doc": "0.0.0 || ^1.3.2", + "ext-json": "*", + "ext-simplexml": "*", + "gregwar/rst": "^1.0", + "mikey179/vfsstream": "^1.6.8", + "phpunit/phpunit": "^4.8.36 || ^5.7.27", + "squizlabs/php_codesniffer": "^2.0" + }, + "bin": [ + "src/bin/phpmd" + ], + "type": "library", + "autoload": { + "psr-0": { + "PHPMD\\": "src/main/php" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Manuel Pichler", + "email": "github@manuel-pichler.de", + "homepage": "https://github.com/manuelpichler", + "role": "Project Founder" + }, + { + "name": "Marc Würth", + "email": "ravage@bluewin.ch", + "homepage": "https://github.com/ravage84", + "role": "Project Maintainer" + }, + { + "name": "Other contributors", + "homepage": "https://github.com/phpmd/phpmd/graphs/contributors", + "role": "Contributors" + } + ], + "description": "PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD.", + "homepage": "https://phpmd.org/", + "keywords": [ + "mess detection", + "mess detector", + "pdepend", + "phpmd", + "pmd" + ], + "support": { + "irc": "irc://irc.freenode.org/phpmd", + "issues": "https://github.com/phpmd/phpmd/issues", + "source": "https://github.com/phpmd/phpmd/tree/2.11.0" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/phpmd/phpmd", + "type": "tidelift" + } + ], + "time": "2021-11-29T14:05:52+00:00" + }, + { + "name": "phpspec/prophecy", + "version": "v1.5.0", + "source": { + "type": "git", + "url": "https://github.com/phpspec/prophecy.git", + "reference": "4745ded9307786b730d7a60df5cb5a6c43cf95f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/4745ded9307786b730d7a60df5cb5a6c43cf95f7", + "reference": "4745ded9307786b730d7a60df5cb5a6c43cf95f7", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "phpdocumentor/reflection-docblock": "~2.0", + "sebastian/comparator": "~1.1" + }, + "require-dev": { + "phpspec/phpspec": "~2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "psr-0": { + "Prophecy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Konstantin Kudryashov", + "email": "ever.zet@gmail.com", + "homepage": "http://everzet.com" + }, + { + "name": "Marcello Duarte", + "email": "marcello.duarte@gmail.com" + } + ], + "description": "Highly opinionated mocking framework for PHP 5.3+", + "homepage": "https://github.com/phpspec/prophecy", + "keywords": [ + "Double", + "Dummy", + "fake", + "mock", + "spy", + "stub" + ], + "support": { + "issues": "https://github.com/phpspec/prophecy/issues", + "source": "https://github.com/phpspec/prophecy/tree/master" + }, + "time": "2015-08-13T10:07:40+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "2.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979", + "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "phpunit/php-file-iterator": "~1.3", + "phpunit/php-text-template": "~1.2", + "phpunit/php-token-stream": "~1.3", + "sebastian/environment": "^1.3.2", + "sebastian/version": "~1.0" + }, + "require-dev": { + "ext-xdebug": ">=2.1.4", + "phpunit/phpunit": "~4" + }, + "suggest": { + "ext-dom": "*", + "ext-xdebug": ">=2.2.1", + "ext-xmlwriter": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "irc": "irc://irc.freenode.net/phpunit", + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/2.2" + }, + "time": "2015-10-06T15:47:00+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "1.4.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", + "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "irc": "irc://irc.freenode.net/phpunit", + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/1.4.5" + }, + "time": "2017-11-27T13:52:08+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "1.2.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" + }, + "time": "2015-06-21T13:50:34+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "1.0.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/38e9124049cf1a164f1e4537caf19c99bf1eb260", + "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4|~5" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "irc": "irc://irc.freenode.net/phpunit", + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/master" + }, + "time": "2016-05-12T18:03:57+00:00" + }, + { + "name": "phpunit/php-token-stream", + "version": "1.4.12", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-token-stream.git", + "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/1ce90ba27c42e4e44e6d8458241466380b51fa16", + "reference": "1ce90ba27c42e4e44e6d8458241466380b51fa16", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Wrapper around PHP's tokenizer extension.", + "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "keywords": [ + "tokenizer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", + "source": "https://github.com/sebastianbergmann/php-token-stream/tree/1.4" + }, + "abandoned": true, + "time": "2017-12-04T08:55:13+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "4.8.36", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "46023de9a91eec7dfb06cc56cb4e260017298517" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/46023de9a91eec7dfb06cc56cb4e260017298517", + "reference": "46023de9a91eec7dfb06cc56cb4e260017298517", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-pcre": "*", + "ext-reflection": "*", + "ext-spl": "*", + "php": ">=5.3.3", + "phpspec/prophecy": "^1.3.1", + "phpunit/php-code-coverage": "~2.1", + "phpunit/php-file-iterator": "~1.4", + "phpunit/php-text-template": "~1.2", + "phpunit/php-timer": "^1.0.6", + "phpunit/phpunit-mock-objects": "~2.3", + "sebastian/comparator": "~1.2.2", + "sebastian/diff": "~1.2", + "sebastian/environment": "~1.3", + "sebastian/exporter": "~1.2", + "sebastian/global-state": "~1.0", + "sebastian/version": "~1.0", + "symfony/yaml": "~2.1|~3.0" + }, + "suggest": { + "phpunit/php-invoker": "~1.1" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.8.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "source": "https://github.com/sebastianbergmann/phpunit/tree/4.8.36" + }, + "time": "2017-06-21T08:07:12+00:00" + }, + { + "name": "phpunit/phpunit-mock-objects", + "version": "2.3.8", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", + "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983", + "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983", + "shasum": "" + }, + "require": { + "doctrine/instantiator": "^1.0.2", + "php": ">=5.3.3", + "phpunit/php-text-template": "~1.2", + "sebastian/exporter": "~1.2" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "suggest": { + "ext-soap": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sb@sebastian-bergmann.de", + "role": "lead" + } + ], + "description": "Mock Object library for PHPUnit", + "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", + "keywords": [ + "mock", + "xunit" + ], + "support": { + "irc": "irc://irc.freenode.net/phpunit", + "issues": "https://github.com/sebastianbergmann/phpunit-mock-objects/issues", + "source": "https://github.com/sebastianbergmann/phpunit-mock-objects/tree/2.3" + }, + "abandoned": true, + "time": "2015-10-02T06:51:40+00:00" + }, + { + "name": "psr/container", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/1.1.2" + }, + "time": "2021-11-05T16:50:12+00:00" + }, + { + "name": "psr/log", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/fe5ea303b0887d5caefd3d431c3e61ad47037001", + "reference": "fe5ea303b0887d5caefd3d431c3e61ad47037001", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.0" + }, + "time": "2021-07-14T16:46:02+00:00" + }, + { + "name": "sebastian/comparator", + "version": "1.2.4", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/diff": "~1.2", + "sebastian/exporter": "~1.2 || ~2.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.2.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "http://www.github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/1.2" + }, + "time": "2017-01-29T09:50:25+00:00" + }, + { + "name": "sebastian/diff", + "version": "1.4.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/13edfd8706462032c2f52b4b862974dd46b71c9e", + "reference": "13edfd8706462032c2f52b4b862974dd46b71c9e", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/master" + }, + "time": "2015-12-08T07:14:41+00:00" + }, + { + "name": "sebastian/environment", + "version": "1.3.7", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "4e8f0da10ac5802913afc151413bc8c53b6c2716" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/4e8f0da10ac5802913afc151413bc8c53b6c2716", + "reference": "4e8f0da10ac5802913afc151413bc8c53b6c2716", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "http://www.github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/1.3.7" + }, + "time": "2016-05-17T03:18:57+00:00" + }, + { + "name": "sebastian/exporter", + "version": "1.2.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4", + "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "sebastian/recursion-context": "~1.0" + }, + "require-dev": { + "ext-mbstring": "*", + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "http://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/master" + }, + "time": "2016-06-17T09:04:28+00:00" + }, + { + "name": "sebastian/global-state", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4", + "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.2" + }, + "suggest": { + "ext-uopz": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "http://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/1.1.1" + }, + "time": "2015-10-12T03:26:01+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/b19cc3298482a335a95f3016d2f8a6950f0fbcd7", + "reference": "b19cc3298482a335a95f3016d2f8a6950f0fbcd7", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/master" + }, + "time": "2016-10-03T07:41:43+00:00" + }, + { + "name": "sebastian/version", + "version": "1.0.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", + "reference": "58b3a85e7999757d6ad81c787a1fbf5ff6c628c6", + "shasum": "" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/1.0.6" + }, + "time": "2015-06-21T13:59:46+00:00" + }, + { + "name": "squizlabs/php_codesniffer", + "version": "3.6.1", + "source": { + "type": "git", + "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", + "reference": "f268ca40d54617c6e06757f83f699775c9b3ff2e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/f268ca40d54617c6e06757f83f699775c9b3ff2e", + "reference": "f268ca40d54617c6e06757f83f699775c9b3ff2e", + "shasum": "" + }, + "require": { + "ext-simplexml": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": ">=5.4.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" + }, + "bin": [ + "bin/phpcs", + "bin/phpcbf" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Greg Sherwood", + "role": "lead" + } + ], + "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", + "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", + "keywords": [ + "phpcs", + "standards" + ], + "support": { + "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", + "source": "https://github.com/squizlabs/PHP_CodeSniffer", + "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" + }, + "time": "2021-10-11T04:00:11+00:00" + }, + { + "name": "symfony/config", + "version": "v4.4.34", + "source": { + "type": "git", + "url": "https://github.com/symfony/config.git", + "reference": "e99b65a18faa34fde57078095c39a1bc91a22492" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/config/zipball/e99b65a18faa34fde57078095c39a1bc91a22492", + "reference": "e99b65a18faa34fde57078095c39a1bc91a22492", + "shasum": "" + }, + "require": { + "php": ">=7.1.3", + "symfony/filesystem": "^3.4|^4.0|^5.0", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-php80": "^1.16", + "symfony/polyfill-php81": "^1.22" + }, + "conflict": { + "symfony/finder": "<3.4" + }, + "require-dev": { + "symfony/event-dispatcher": "^3.4|^4.0|^5.0", + "symfony/finder": "^3.4|^4.0|^5.0", + "symfony/messenger": "^4.1|^5.0", + "symfony/service-contracts": "^1.1|^2", + "symfony/yaml": "^3.4|^4.0|^5.0" + }, + "suggest": { + "symfony/yaml": "To use the yaml reference dumper" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Config\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/config/tree/v4.4.34" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-10-29T15:43:26+00:00" + }, + { + "name": "symfony/dependency-injection", + "version": "v4.4.34", + "source": { + "type": "git", + "url": "https://github.com/symfony/dependency-injection.git", + "reference": "117d7f132ed7efbd535ec947709d49bec1b9d24b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/117d7f132ed7efbd535ec947709d49bec1b9d24b", + "reference": "117d7f132ed7efbd535ec947709d49bec1b9d24b", + "shasum": "" + }, + "require": { + "php": ">=7.1.3", + "psr/container": "^1.0", + "symfony/polyfill-php80": "^1.16", + "symfony/service-contracts": "^1.1.6|^2" + }, + "conflict": { + "symfony/config": "<4.3|>=5.0", + "symfony/finder": "<3.4", + "symfony/proxy-manager-bridge": "<3.4", + "symfony/yaml": "<3.4" + }, + "provide": { + "psr/container-implementation": "1.0", + "symfony/service-implementation": "1.0|2.0" + }, + "require-dev": { + "symfony/config": "^4.3", + "symfony/expression-language": "^3.4|^4.0|^5.0", + "symfony/yaml": "^4.4|^5.0" + }, + "suggest": { + "symfony/config": "", + "symfony/expression-language": "For using expressions in service container configuration", + "symfony/finder": "For using double-star glob patterns or when GLOB_BRACE portability is required", + "symfony/proxy-manager-bridge": "Generate service proxies to lazy load them", + "symfony/yaml": "" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\DependencyInjection\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows you to standardize and centralize the way objects are constructed in your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/dependency-injection/tree/v4.4.34" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-11-15T14:42:25+00:00" + }, + { + "name": "symfony/filesystem", + "version": "v5.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/filesystem.git", + "reference": "731f917dc31edcffec2c6a777f3698c33bea8f01" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/731f917dc31edcffec2c6a777f3698c33bea8f01", + "reference": "731f917dc31edcffec2c6a777f3698c33bea8f01", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-mbstring": "~1.8", + "symfony/polyfill-php80": "^1.16" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Filesystem\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides basic utilities for the filesystem", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/filesystem/tree/v5.4.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-10-28T13:39:27+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.23.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce", + "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-02-19T12:13:01+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.23.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9174a3d80210dca8daa7f31fec659150bbeabfc6", + "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-05-27T12:26:48+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.23.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be", + "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-07-28T13:41:28+00:00" + }, + { + "name": "symfony/polyfill-php81", + "version": "v1.23.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php81.git", + "reference": "e66119f3de95efc359483f810c4c3e6436279436" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/e66119f3de95efc359483f810c4c3e6436279436", + "reference": "e66119f3de95efc359483f810c4c3e6436279436", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php81\\": "" + }, + "files": [ + "bootstrap.php" + ], + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php81/tree/v1.23.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-05-21T13:25:03+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v2.5.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc", + "reference": "1ab11b933cd6bc5464b08e81e2c5b07dec58b0fc", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "psr/container": "^1.1", + "symfony/deprecation-contracts": "^2.1" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "suggest": { + "symfony/service-implementation": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v2.5.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-11-04T16:48:04+00:00" + }, + { + "name": "symfony/yaml", + "version": "v3.4.47", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "88289caa3c166321883f67fe5130188ebbb47094" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/88289caa3c166321883f67fe5130188ebbb47094", + "reference": "88289caa3c166321883f67fe5130188ebbb47094", + "shasum": "" + }, + "require": { + "php": "^5.5.9|>=7.0.8", + "symfony/polyfill-ctype": "~1.8" + }, + "conflict": { + "symfony/console": "<3.4" + }, + "require-dev": { + "symfony/console": "~3.4|~4.0" + }, + "suggest": { + "symfony/console": "For validating YAML files using the lint command" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony Yaml Component", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v3.4.47" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-10-24T10:57:07+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v2.6.8", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "f1e2a35e53abe9322f0ab9ada689967e30055d40" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/f1e2a35e53abe9322f0ab9ada689967e30055d40", + "reference": "f1e2a35e53abe9322f0ab9ada689967e30055d40", + "shasum": "" + }, + "require": { + "php": "^5.3.9 || ^7.0 || ^8.0", + "symfony/polyfill-ctype": "^1.17" + }, + "require-dev": { + "ext-filter": "*", + "ext-pcre": "*", + "phpunit/phpunit": "^4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.21" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator.", + "ext-pcre": "Required to use most of the library." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.6-dev" + } + }, + "autoload": { + "psr-4": { + "Dotenv\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk" + }, + { + "name": "Vance Lucas", + "email": "vance@vancelucas.com" + } + ], + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "issues": "https://github.com/vlucas/phpdotenv/issues", + "source": "https://github.com/vlucas/phpdotenv/tree/v2.6.8" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2021-10-02T19:02:17+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": { + "phpmd/phpmd": 0, + "squizlabs/php_codesniffer": 0 + }, + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=7.3", + "ext-curl": "*" + }, + "platform-dev": [], + "plugin-api-version": "2.0.0" +} From e255cd91283fbcf715bdd88d63ad7b1558fec074 Mon Sep 17 00:00:00 2001 From: nikkig124 Date: Wed, 1 Dec 2021 11:28:42 -0800 Subject: [PATCH 21/35] remove unused files --- CONTRIBUTING.md | 4 ---- ISSUE_TEMPLATE.md | 6 ------ LICENSE.md | 21 --------------------- 3 files changed, 31 deletions(-) delete mode 100644 CONTRIBUTING.md delete mode 100644 ISSUE_TEMPLATE.md delete mode 100644 LICENSE.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index a72aace..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,4 +0,0 @@ -# Contributing - -1. Make an issue -2. Create a pull request linked to this issue diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md deleted file mode 100644 index b9c62c5..0000000 --- a/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,6 +0,0 @@ -# What? Where? When? - -When you are going to report a new issue, include the following information - -1. Environment -2. Steps to reproduce diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index fd629f8..0000000 --- a/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2017 Philipp Tkachev - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. From 5ebddd78a4b009e25713708602476aebd49713aa Mon Sep 17 00:00:00 2001 From: nikkig124 Date: Wed, 1 Dec 2021 11:29:09 -0800 Subject: [PATCH 22/35] remove travis file --- .travis.yml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7ba0cf6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ - -language: php -php: - - 5.6 - - 7.1 - - 7.2 - - 7.3 - - 7.4 - - 7 - - -before_script: -- composer update From 0568a980ef56cb4e617ce4f180584a3fb3dd5203 Mon Sep 17 00:00:00 2001 From: nikkig124 Date: Wed, 1 Dec 2021 11:30:43 -0800 Subject: [PATCH 23/35] remove code of conduct and edit readme --- CODE_OF_CONDUCT.md | 46 ---------------------------------------------- README.md | 22 ---------------------- 2 files changed, 68 deletions(-) delete mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index 3167625..0000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,46 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at philipp@zoonman.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] - -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ diff --git a/README.md b/README.md index cf81e6b..be3281c 100644 --- a/README.md +++ b/README.md @@ -211,25 +211,3 @@ Some private API access there. ```php $client->setApiRoot('https://api.linkedin.com/v2/'); ``` - -##### ~Image Upload~ --> OBSOLETE (This part needs an update) - -I assume you have to be LinkedIn partner or something like that. - -Try to upload image to LinkedIn. See [Rich Media Shares](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/rich-media-shares) - - -```php -$filename = '/path/to/image.jpg'; -$client->setApiRoot('https://api.linkedin.com/'); -$mp = $client->upload($filename); -``` - -## Contributing - -Please, open PR with your changes linked to an GitHub issue. -You code must follow [PSR](http://www.php-fig.org/psr/) standards and have PHPUnit tests. - -## License - -[MIT](LICENSE.md) From c2652689fe9cad86beb3f6feee5f3e6f21c55765 Mon Sep 17 00:00:00 2001 From: Andrii Podanenko Date: Fri, 16 Sep 2022 10:37:56 +0300 Subject: [PATCH 24/35] fix: Proper composer command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index be3281c..8ab0732 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ You will need at least PHP 7.3. We match [officially supported](https://www.php. Use [composer](https://getcomposer.org/) package manager to install the lastest version of the package: ```bash -composer require pmg/linkedin-api-php-client +composer require samoritano/linkedin-api-php-client-v2 ``` Or add this package as dependency to `composer.json`. From e44e8f40ad1a82241506e4367fd3992e5988cf37 Mon Sep 17 00:00:00 2001 From: Esens Design <103586317+esensgit@users.noreply.github.com> Date: Fri, 14 Apr 2023 10:33:03 +0200 Subject: [PATCH 25/35] Use Query::build After Guzzle 7.2 build_query() was deprecated. --- src/Client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Client.php b/src/Client.php index 89375d1..b0ca389 100644 --- a/src/Client.php +++ b/src/Client.php @@ -19,7 +19,7 @@ use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Exception\RequestException; -use function GuzzleHttp\Psr7\build_query; +use GuzzleHttp\Psr7\Query; use GuzzleHttp\Psr7\Uri; use LinkedIn\Http\Method; @@ -515,7 +515,7 @@ protected function buildUrl($endpoint, $params) $scheme, $authority, $path, - build_query($params), + Query::build($params), $fragment ); return $uri; @@ -545,7 +545,7 @@ public function api($endpoint, array $params = [], $method = Method::GET) 'headers' => $headers, ]); if (!empty($params) && Method::GET === $method) { - $endpoint .= '?' . build_query($params); + $endpoint .= '?' . Query::build($params); } try { From 59f36db822542b850d46e412bfcc5844da893f81 Mon Sep 17 00:00:00 2001 From: Esens Design <103586317+esensgit@users.noreply.github.com> Date: Fri, 14 Apr 2023 10:55:46 +0200 Subject: [PATCH 26/35] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 70ce0b9..a20bea0 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "pmg/linkedin-api-php-client", + "name": "esensdesign/linkedin-api-php-client", "description": "This package is an SDK for using LinkedIn V2 Marketing API. You can use it for managing Company Pages in this social network", "type": "library", "keywords": [ From 9cd91f66057cd40a1ef3bda1821ea6115f7e4fc5 Mon Sep 17 00:00:00 2001 From: Esens Design <103586317+esensgit@users.noreply.github.com> Date: Fri, 14 Apr 2023 11:43:52 +0200 Subject: [PATCH 27/35] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ab0732..fafa2f3 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ You will need at least PHP 7.3. We match [officially supported](https://www.php. Use [composer](https://getcomposer.org/) package manager to install the lastest version of the package: ```bash -composer require samoritano/linkedin-api-php-client-v2 +composer require composer require esensdesign/linkedin-api-php-client ``` Or add this package as dependency to `composer.json`. From 9f0d22bec82b38c80850c90f20363176dc53bd1f Mon Sep 17 00:00:00 2001 From: Esens Design <103586317+esensgit@users.noreply.github.com> Date: Fri, 14 Apr 2023 11:44:13 +0200 Subject: [PATCH 28/35] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fafa2f3..42b29dc 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ You will need at least PHP 7.3. We match [officially supported](https://www.php. Use [composer](https://getcomposer.org/) package manager to install the lastest version of the package: ```bash -composer require composer require esensdesign/linkedin-api-php-client +composer require esensdesign/linkedin-api-php-client ``` Or add this package as dependency to `composer.json`. From ffe18dc52481e59d788e0a675f1f4182c9a45bd0 Mon Sep 17 00:00:00 2001 From: Esens Design <103586317+esensgit@users.noreply.github.com> Date: Fri, 14 Apr 2023 12:58:40 +0200 Subject: [PATCH 29/35] Removed validation of refresh data. No clue if this works. --- src/AccessToken.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/AccessToken.php b/src/AccessToken.php index 3292acc..5eaaeb1 100644 --- a/src/AccessToken.php +++ b/src/AccessToken.php @@ -225,17 +225,17 @@ private static function validateExpiresIn($responseArray) private static function validateRefreshToken($responseArray) { if (!isset($responseArray['refresh_token'])) { - throw new \InvalidArgumentException( - 'Refresh token is not available' - ); + // throw new \InvalidArgumentException( + // 'Refresh token is not available' + // ); } } private static function validateRefreshTokenExpiresIn($responseArray) { if (!isset($responseArray['refresh_token_expires_in'])) { - throw new \InvalidArgumentException( - 'Refresh token expiration date is not specified' - ); + //throw new \InvalidArgumentException( + // 'Refresh token expiration date is not specified' + //); } } /** From 992dc5692875f4875b2c6da4fa4335fd77144447 Mon Sep 17 00:00:00 2001 From: Esens Design <103586317+esensgit@users.noreply.github.com> Date: Fri, 14 Apr 2023 13:34:27 +0200 Subject: [PATCH 30/35] Update AccessToken.php check if refresh token is set --- src/AccessToken.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AccessToken.php b/src/AccessToken.php index 5eaaeb1..135cabc 100644 --- a/src/AccessToken.php +++ b/src/AccessToken.php @@ -202,8 +202,8 @@ public static function fromResponseArray($responseArray) return new static( $responseArray['access_token'], $responseArray['expires_in'] + time(), - $responseArray['refresh_token'], - $responseArray['refresh_token_expires_in'] + time() + ((isset($responseArray['refresh_token'])) ? ($responseArray['refresh_token']) : ('')), + ((isset($responseArray['refresh_token_expires_in'])) ? ($responseArray['refresh_token_expires_in'] + time()) : ('')) ); } private static function validateAccessToken($responseArray) From 3118bdf7dba61e2faa41036c99fb11aea5570500 Mon Sep 17 00:00:00 2001 From: Esens Design <103586317+esensgit@users.noreply.github.com> Date: Tue, 18 Apr 2023 16:02:58 +0200 Subject: [PATCH 31/35] Update AccessToken.php --- src/AccessToken.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/AccessToken.php b/src/AccessToken.php index 135cabc..c68274f 100644 --- a/src/AccessToken.php +++ b/src/AccessToken.php @@ -202,8 +202,8 @@ public static function fromResponseArray($responseArray) return new static( $responseArray['access_token'], $responseArray['expires_in'] + time(), - ((isset($responseArray['refresh_token'])) ? ($responseArray['refresh_token']) : ('')), - ((isset($responseArray['refresh_token_expires_in'])) ? ($responseArray['refresh_token_expires_in'] + time()) : ('')) + $responseArray['refresh_token'], + $responseArray['refresh_token_expires_in'] ); } private static function validateAccessToken($responseArray) @@ -225,17 +225,17 @@ private static function validateExpiresIn($responseArray) private static function validateRefreshToken($responseArray) { if (!isset($responseArray['refresh_token'])) { - // throw new \InvalidArgumentException( - // 'Refresh token is not available' - // ); + throw new \InvalidArgumentException( + 'Refresh token is not available' + ); } } private static function validateRefreshTokenExpiresIn($responseArray) { if (!isset($responseArray['refresh_token_expires_in'])) { - //throw new \InvalidArgumentException( - // 'Refresh token expiration date is not specified' - //); + throw new \InvalidArgumentException( + 'Refresh token expiration date is not specified' + ); } } /** From 08e522de39ad69793e4a995224ecb2d019e3e12a Mon Sep 17 00:00:00 2001 From: Esens Design <103586317+esensgit@users.noreply.github.com> Date: Tue, 18 Apr 2023 16:11:10 +0200 Subject: [PATCH 32/35] Update AccessToken.php --- src/AccessToken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AccessToken.php b/src/AccessToken.php index c68274f..9c4c37b 100644 --- a/src/AccessToken.php +++ b/src/AccessToken.php @@ -203,7 +203,7 @@ public static function fromResponseArray($responseArray) $responseArray['access_token'], $responseArray['expires_in'] + time(), $responseArray['refresh_token'], - $responseArray['refresh_token_expires_in'] + $responseArray['refresh_token_expires_in'] + time() ); } private static function validateAccessToken($responseArray) From 7ba21a94a43a260e0b9a851527bb4804be919a1a Mon Sep 17 00:00:00 2001 From: Esens Design <103586317+esensgit@users.noreply.github.com> Date: Wed, 19 Apr 2023 12:52:14 +0200 Subject: [PATCH 33/35] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 42b29dc..c600ff3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ LinkedIn API Client with OAuth 2 authorization written on PHP ============================================================ -[![Build Status](https://travis-ci.org/AgencyPMG/linkedin-api-php-client.svg?branch=master)](https://travis-ci.org/AgencyPMG/linkedin-api-php-client) [![Code Climate](https://codeclimate.com/github/AgencyPMG/linkedin-api-php-client/badges/gpa.svg)](https://codeclimate.com/github/AgencyPMG/linkedin-api-php-client) [![Packagist](https://img.shields.io/packagist/dt/AgencyPMG/linkedin-api-php-client.svg)](https://packagist.org/packages/AgencyPMG/linkedin-api-php-client-v2) [![GitHub license](https://img.shields.io/github/license/AgencyPMG/linkedin-api-php-client.svg)](https://github.com/AgencyPMG/linkedin-api-php-client/blob/master/LICENSE.md) - ## Installation From 440ba82c0a8b806980ea4287bb158647ef67169b Mon Sep 17 00:00:00 2001 From: Rahul Kumar Sharma Date: Mon, 21 Aug 2023 14:48:59 +0530 Subject: [PATCH 34/35] -- using Query::class insted of build_query() --- src/Client.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Client.php b/src/Client.php index 89375d1..9d1edc7 100644 --- a/src/Client.php +++ b/src/Client.php @@ -19,7 +19,7 @@ use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Exception\RequestException; -use function GuzzleHttp\Psr7\build_query; +use GuzzleHttp\Psr7\Query; use GuzzleHttp\Psr7\Uri; use LinkedIn\Http\Method; @@ -515,7 +515,7 @@ protected function buildUrl($endpoint, $params) $scheme, $authority, $path, - build_query($params), + Query::build($params), $fragment ); return $uri; @@ -545,7 +545,7 @@ public function api($endpoint, array $params = [], $method = Method::GET) 'headers' => $headers, ]); if (!empty($params) && Method::GET === $method) { - $endpoint .= '?' . build_query($params); + $endpoint .= '?' . Query::build($params); } try { @@ -647,7 +647,7 @@ protected function prepareOptions(array $params, bool $rawData = false) { $options = []; if ($rawData) { - $options['body'] = build_query($params, false); + $options['body'] = Query::build($params, false); return $options; } $options['body'] = \GuzzleHttp\json_encode($params); From 47ed031a470be313ef5afec8ee92f5ff3e4d16b2 Mon Sep 17 00:00:00 2001 From: Samori Bokoko Date: Sat, 9 Dec 2023 08:11:30 +0100 Subject: [PATCH 35/35] Update readme --- README.md | 4 ++-- composer.json | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c600ff3..2fa0159 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,12 @@ LinkedIn API Client with OAuth 2 authorization written on PHP ## Installation -You will need at least PHP 7.3. We match [officially supported](https://www.php.net/supported-versions.php) versions of PHP. +You will need at least PHP 7.4. We match [officially supported](https://www.php.net/supported-versions.php) versions of PHP. Use [composer](https://getcomposer.org/) package manager to install the lastest version of the package: ```bash -composer require esensdesign/linkedin-api-php-client +composer require samoritano/linkedin-api-php-client ``` Or add this package as dependency to `composer.json`. diff --git a/composer.json b/composer.json index a20bea0..04a6f69 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "esensdesign/linkedin-api-php-client", + "name": "samoritano/linkedin-api-php-client", "description": "This package is an SDK for using LinkedIn V2 Marketing API. You can use it for managing Company Pages in this social network", "type": "library", "keywords": [ @@ -9,7 +9,7 @@ "social", "rest", "api", "client", "social network", "auth", "authorization", "wrapper", "integration", "platform" ], - "homepage": "https://github.com/AgencyPMG/linkedin-api-php-client", + "homepage": "https://github.com/samoritano/linkedin-api-php-client", "require": { "php": "^7.4 || ^8.0", "ext-curl": "*", @@ -17,9 +17,9 @@ }, "license": "MIT", "support": { - "docs": "https://github.com/AgencyPMG/linkedin-api-php-client/blob/master/README.md", - "source": "https://github.com/AgencyPMG/linkedin-api-php-client", - "issues": "https://github.com/AgencyPMG/linkedin-api-php-client/issues" + "docs": "https://github.com/samoritano/linkedin-api-php-client/blob/master/README.md", + "source": "https://github.com/samoritano/linkedin-api-php-client", + "issues": "https://github.com/samoritano/linkedin-api-php-client/issues" }, "autoload": { "psr-4": {"LinkedIn\\": "src/"}