From 7d113be37cb66db6e7eb185d4737fd47a4b12e1e Mon Sep 17 00:00:00 2001 From: Greg Colley Date: Thu, 19 May 2022 12:09:56 +0100 Subject: [PATCH 01/12] Guzzle requires v6.x or v7.x v6.x requires PHP Verison >= 5.5 v7.x required PHP Version >= 7.2 Source: https://github.com/guzzle/guzzle --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1c81981..c7348ea 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", - "guzzlehttp/guzzle": "^6.2" + "guzzlehttp/guzzle": "^6.2|^7.0.1" }, "require-dev": { "phpunit/phpunit": "^4.8", From 1f54b6325b0f1165f35dc04e07037330780255bc Mon Sep 17 00:00:00 2001 From: llgreg <62950063+llgreg@users.noreply.github.com> Date: Thu, 19 May 2022 13:13:13 +0100 Subject: [PATCH 02/12] Guzzle requires v6.x or v7.x v6.x requires PHP Version >= 5.5 v7.x required PHP Version >= 7.2 Source: https://github.com/guzzle/guzzle --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 1c81981..86899f5 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", - "guzzlehttp/guzzle": "^6.2" + "guzzlehttp/guzzle": "^6.2|^7.0.1" }, "require-dev": { "phpunit/phpunit": "^4.8", @@ -34,4 +34,4 @@ "autoload-dev": { "psr-4": { "SignRequest\\" : "test/" } } -} \ No newline at end of file +} From 597964d2df0d73a40fba3838638e0e93fa7ec527 Mon Sep 17 00:00:00 2001 From: llgreg <62950063+llgreg@users.noreply.github.com> Date: Wed, 25 May 2022 15:36:02 +0100 Subject: [PATCH 03/12] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 86899f5..f87f135 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name": "signrequest/signrequest-client", - "version": "1.3.0", + "name": "liquidline/signrequest-client", + "version": "1.3.1", "description": "Official PHP client for SignRequest.com (https://signrequest.com)", "keywords": [ "signrequest", From 6d78125e327bd5332ed6685d3d6abb0d1c570ef5 Mon Sep 17 00:00:00 2001 From: Greg Colley Date: Wed, 25 May 2022 16:09:37 +0100 Subject: [PATCH 04/12] Composer name updated --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index f87f135..2400269 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "liquidline/signrequest-client", + "name": "liquidline/signrequest-php-client", "version": "1.3.1", "description": "Official PHP client for SignRequest.com (https://signrequest.com)", "keywords": [ From ce7b1b400d90373a7793d6a406d4bf4a8f8198da Mon Sep 17 00:00:00 2001 From: Greg Colley Date: Mon, 6 Jun 2022 13:10:29 +0100 Subject: [PATCH 05/12] GuzzleHttp\Psr7\build_query changed to Query::build build --- src/Api/ApiTokensApi.php | 4 ++-- src/Api/DocumentAttachmentsApi.php | 12 ++++++------ src/Api/DocumentsApi.php | 16 ++++++++-------- src/Api/DocumentsSearchApi.php | 4 ++-- src/Api/EventsApi.php | 8 ++++---- src/Api/SignrequestQuickCreateApi.php | 4 ++-- src/Api/SignrequestsApi.php | 20 ++++++++++---------- src/Api/TeamMembersApi.php | 8 ++++---- src/Api/TeamsApi.php | 24 ++++++++++++------------ src/Api/TemplatesApi.php | 8 ++++---- src/Api/WebhooksApi.php | 24 ++++++++++++------------ 11 files changed, 66 insertions(+), 66 deletions(-) diff --git a/src/Api/ApiTokensApi.php b/src/Api/ApiTokensApi.php index 58725d9..beafa67 100644 --- a/src/Api/ApiTokensApi.php +++ b/src/Api/ApiTokensApi.php @@ -328,7 +328,7 @@ protected function apiTokensListRequest($page = null, $limit = null) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -349,7 +349,7 @@ protected function apiTokensListRequest($page = null, $limit = null) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), diff --git a/src/Api/DocumentAttachmentsApi.php b/src/Api/DocumentAttachmentsApi.php index 9fc9882..efa0ef2 100644 --- a/src/Api/DocumentAttachmentsApi.php +++ b/src/Api/DocumentAttachmentsApi.php @@ -324,7 +324,7 @@ protected function documentAttachmentsCreateRequest($data) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -345,7 +345,7 @@ protected function documentAttachmentsCreateRequest($data) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -624,7 +624,7 @@ protected function documentAttachmentsListRequest($document__uuid = null, $docum } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -645,7 +645,7 @@ protected function documentAttachmentsListRequest($document__uuid = null, $docum $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -898,7 +898,7 @@ protected function documentAttachmentsReadRequest($uuid) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -919,7 +919,7 @@ protected function documentAttachmentsReadRequest($uuid) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), diff --git a/src/Api/DocumentsApi.php b/src/Api/DocumentsApi.php index 180804f..56c3453 100644 --- a/src/Api/DocumentsApi.php +++ b/src/Api/DocumentsApi.php @@ -324,7 +324,7 @@ protected function documentsCreateRequest($data) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -345,7 +345,7 @@ protected function documentsCreateRequest($data) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -561,7 +561,7 @@ protected function documentsDeleteRequest($uuid) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -582,7 +582,7 @@ protected function documentsDeleteRequest($uuid) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -915,7 +915,7 @@ protected function documentsListRequest($external_id = null, $signrequest__who = } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -936,7 +936,7 @@ protected function documentsListRequest($external_id = null, $signrequest__who = $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -1189,7 +1189,7 @@ protected function documentsReadRequest($uuid) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -1210,7 +1210,7 @@ protected function documentsReadRequest($uuid) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), diff --git a/src/Api/DocumentsSearchApi.php b/src/Api/DocumentsSearchApi.php index 811237e..88c5760 100644 --- a/src/Api/DocumentsSearchApi.php +++ b/src/Api/DocumentsSearchApi.php @@ -409,7 +409,7 @@ protected function documentsSearchListRequest($page = null, $limit = null, $q = } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -430,7 +430,7 @@ protected function documentsSearchListRequest($page = null, $limit = null, $q = $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), diff --git a/src/Api/EventsApi.php b/src/Api/EventsApi.php index a59ff7f..efda2ed 100644 --- a/src/Api/EventsApi.php +++ b/src/Api/EventsApi.php @@ -445,7 +445,7 @@ protected function eventsListRequest($document__uuid = null, $document__external } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -466,7 +466,7 @@ protected function eventsListRequest($document__uuid = null, $document__external $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -719,7 +719,7 @@ protected function eventsReadRequest($id) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -740,7 +740,7 @@ protected function eventsReadRequest($id) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), diff --git a/src/Api/SignrequestQuickCreateApi.php b/src/Api/SignrequestQuickCreateApi.php index 56304a4..0772980 100644 --- a/src/Api/SignrequestQuickCreateApi.php +++ b/src/Api/SignrequestQuickCreateApi.php @@ -324,7 +324,7 @@ protected function signrequestQuickCreateCreateRequest($data) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -345,7 +345,7 @@ protected function signrequestQuickCreateCreateRequest($data) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), diff --git a/src/Api/SignrequestsApi.php b/src/Api/SignrequestsApi.php index 294735d..be03d6e 100644 --- a/src/Api/SignrequestsApi.php +++ b/src/Api/SignrequestsApi.php @@ -329,7 +329,7 @@ protected function signrequestsCancelSignrequestRequest($uuid) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -350,7 +350,7 @@ protected function signrequestsCancelSignrequestRequest($uuid) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -598,7 +598,7 @@ protected function signrequestsCreateRequest($data) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -619,7 +619,7 @@ protected function signrequestsCreateRequest($data) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -889,7 +889,7 @@ protected function signrequestsListRequest($who = null, $from_email = null, $pag } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -910,7 +910,7 @@ protected function signrequestsListRequest($who = null, $from_email = null, $pag $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -1163,7 +1163,7 @@ protected function signrequestsReadRequest($uuid) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -1184,7 +1184,7 @@ protected function signrequestsReadRequest($uuid) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -1437,7 +1437,7 @@ protected function signrequestsResendSignrequestEmailRequest($uuid) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -1458,7 +1458,7 @@ protected function signrequestsResendSignrequestEmailRequest($uuid) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), diff --git a/src/Api/TeamMembersApi.php b/src/Api/TeamMembersApi.php index 3eda6ab..53ef5e8 100644 --- a/src/Api/TeamMembersApi.php +++ b/src/Api/TeamMembersApi.php @@ -382,7 +382,7 @@ protected function teamMembersListRequest($is_active = null, $is_owner = null, $ } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -403,7 +403,7 @@ protected function teamMembersListRequest($is_active = null, $is_owner = null, $ $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -656,7 +656,7 @@ protected function teamMembersReadRequest($uuid) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -677,7 +677,7 @@ protected function teamMembersReadRequest($uuid) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), diff --git a/src/Api/TeamsApi.php b/src/Api/TeamsApi.php index 0b2268a..2a52084 100644 --- a/src/Api/TeamsApi.php +++ b/src/Api/TeamsApi.php @@ -324,7 +324,7 @@ protected function teamsCreateRequest($data) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -345,7 +345,7 @@ protected function teamsCreateRequest($data) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -561,7 +561,7 @@ protected function teamsDeleteRequest($subdomain) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -582,7 +582,7 @@ protected function teamsDeleteRequest($subdomain) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -849,7 +849,7 @@ protected function teamsInviteMemberRequest($subdomain, $data) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -870,7 +870,7 @@ protected function teamsInviteMemberRequest($subdomain, $data) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -1122,7 +1122,7 @@ protected function teamsListRequest($page = null, $limit = null) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -1143,7 +1143,7 @@ protected function teamsListRequest($page = null, $limit = null) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -1410,7 +1410,7 @@ protected function teamsPartialUpdateRequest($subdomain, $data) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -1431,7 +1431,7 @@ protected function teamsPartialUpdateRequest($subdomain, $data) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'PATCH', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -1684,7 +1684,7 @@ protected function teamsReadRequest($subdomain) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -1705,7 +1705,7 @@ protected function teamsReadRequest($subdomain) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), diff --git a/src/Api/TemplatesApi.php b/src/Api/TemplatesApi.php index 9a74ffc..f512c26 100644 --- a/src/Api/TemplatesApi.php +++ b/src/Api/TemplatesApi.php @@ -328,7 +328,7 @@ protected function templatesListRequest($page = null, $limit = null) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -349,7 +349,7 @@ protected function templatesListRequest($page = null, $limit = null) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -602,7 +602,7 @@ protected function templatesReadRequest($uuid) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -623,7 +623,7 @@ protected function templatesReadRequest($uuid) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), diff --git a/src/Api/WebhooksApi.php b/src/Api/WebhooksApi.php index 7066c80..1ad3b79 100644 --- a/src/Api/WebhooksApi.php +++ b/src/Api/WebhooksApi.php @@ -324,7 +324,7 @@ protected function webhooksCreateRequest($data) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -345,7 +345,7 @@ protected function webhooksCreateRequest($data) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'POST', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -561,7 +561,7 @@ protected function webhooksDeleteRequest($uuid) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -582,7 +582,7 @@ protected function webhooksDeleteRequest($uuid) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'DELETE', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -834,7 +834,7 @@ protected function webhooksListRequest($page = null, $limit = null) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -855,7 +855,7 @@ protected function webhooksListRequest($page = null, $limit = null) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -1122,7 +1122,7 @@ protected function webhooksPartialUpdateRequest($uuid, $data) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -1143,7 +1143,7 @@ protected function webhooksPartialUpdateRequest($uuid, $data) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'PATCH', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -1396,7 +1396,7 @@ protected function webhooksReadRequest($uuid) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -1417,7 +1417,7 @@ protected function webhooksReadRequest($uuid) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'GET', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), @@ -1684,7 +1684,7 @@ protected function webhooksUpdateRequest($uuid, $data) } else { // for HTTP post (form) - $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + $httpBody = \GuzzleHttp\Psr7\Query::build($formParams); } } @@ -1705,7 +1705,7 @@ protected function webhooksUpdateRequest($uuid, $data) $headers ); - $query = \GuzzleHttp\Psr7\build_query($queryParams); + $query = \GuzzleHttp\Psr7\Query::build($queryParams); return new Request( 'PUT', $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), From 91d5d898aee96518735723d68ea36a6459eb078b Mon Sep 17 00:00:00 2001 From: Greg Colley Date: Mon, 6 Jun 2022 13:13:32 +0100 Subject: [PATCH 06/12] version bump --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2400269..f90a1f9 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "liquidline/signrequest-php-client", - "version": "1.3.1", + "version": "1.3.2", "description": "Official PHP client for SignRequest.com (https://signrequest.com)", "keywords": [ "signrequest", From 5ca20de6e70896c86e8bfad27916a76c131c46b3 Mon Sep 17 00:00:00 2001 From: Greg Colley Date: Wed, 19 Oct 2022 09:01:39 +0100 Subject: [PATCH 07/12] Fix for forwarded reason if it's not set. --- src/Model/Signer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/Signer.php b/src/Model/Signer.php index 57bd1b9..a3bee70 100644 --- a/src/Model/Signer.php +++ b/src/Model/Signer.php @@ -1181,7 +1181,8 @@ public function setForwardedReason($forwarded_reason) { if (!is_null($forwarded_reason) && (mb_strlen($forwarded_reason) < 1)) { - throw new \InvalidArgumentException('invalid length for $forwarded_reason when calling Signer., must be bigger than or equal to 1.'); + //throw new \InvalidArgumentException('invalid length for $forwarded_reason when calling Signer., must be bigger than or equal to 1.'); + $forwarded_reason = ' N/A'; } $this->container['forwarded_reason'] = $forwarded_reason; From 877cc723d2ce901f88ed84cc14abdd704a8e7e77 Mon Sep 17 00:00:00 2001 From: Greg Colley Date: Wed, 19 Oct 2022 09:03:57 +0100 Subject: [PATCH 08/12] version bump --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2400269..1d26c4e 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "liquidline/signrequest-php-client", - "version": "1.3.1", + "version": "1.3.3", "description": "Official PHP client for SignRequest.com (https://signrequest.com)", "keywords": [ "signrequest", From ace8d47226bc77876ff699d8585e414d2ead818a Mon Sep 17 00:00:00 2001 From: Greg Colley Date: Tue, 9 Dec 2025 09:20:06 +0000 Subject: [PATCH 09/12] Fixes for Implicitly marking parameters as nullable is deprecated Bumped php requirement for > 7.1 * The package was built for PHP 5.5, so it uses old constructor signatures. * PHP 8.2 and above now warns when a parameter defaults to null without a nullable type. --- composer.json | 2 +- src/Api/SignrequestsApi.php | 6 +++--- src/Model/Document.php | 2 +- src/Model/DocumentSigningLog.php | 2 +- src/Model/DocumentSignrequest.php | 2 +- src/Model/DocumentTeam.php | 2 +- src/Model/Signer.php | 2 +- src/Model/SignerInputs.php | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 1d26c4e..9c21091 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ } ], "require": { - "php": ">=5.5", + "php": ">=7.1", "ext-curl": "*", "ext-json": "*", "ext-mbstring": "*", diff --git a/src/Api/SignrequestsApi.php b/src/Api/SignrequestsApi.php index be03d6e..00b115b 100644 --- a/src/Api/SignrequestsApi.php +++ b/src/Api/SignrequestsApi.php @@ -68,9 +68,9 @@ class SignrequestsApi * @param HeaderSelector $selector */ public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); diff --git a/src/Model/Document.php b/src/Model/Document.php index 49b7e34..b6e3042 100644 --- a/src/Model/Document.php +++ b/src/Model/Document.php @@ -353,7 +353,7 @@ public function getStatusAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['url'] = isset($data['url']) ? $data['url'] : null; $this->container['team'] = isset($data['team']) ? $data['team'] : null; diff --git a/src/Model/DocumentSigningLog.php b/src/Model/DocumentSigningLog.php index 728bdb1..bc6bb66 100644 --- a/src/Model/DocumentSigningLog.php +++ b/src/Model/DocumentSigningLog.php @@ -178,7 +178,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['pdf'] = isset($data['pdf']) ? $data['pdf'] : null; $this->container['security_hash'] = isset($data['security_hash']) ? $data['security_hash'] : null; diff --git a/src/Model/DocumentSignrequest.php b/src/Model/DocumentSignrequest.php index 54d0b0c..0f2b681 100644 --- a/src/Model/DocumentSignrequest.php +++ b/src/Model/DocumentSignrequest.php @@ -290,7 +290,7 @@ public function getWhoAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['from_email'] = isset($data['from_email']) ? $data['from_email'] : null; $this->container['from_email_name'] = isset($data['from_email_name']) ? $data['from_email_name'] : null; diff --git a/src/Model/DocumentTeam.php b/src/Model/DocumentTeam.php index 16c511e..2cdd6b1 100644 --- a/src/Model/DocumentTeam.php +++ b/src/Model/DocumentTeam.php @@ -183,7 +183,7 @@ public function getModelName() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['subdomain'] = isset($data['subdomain']) ? $data['subdomain'] : null; diff --git a/src/Model/Signer.php b/src/Model/Signer.php index a3bee70..388d524 100644 --- a/src/Model/Signer.php +++ b/src/Model/Signer.php @@ -391,7 +391,7 @@ public function getLanguageAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['email'] = isset($data['email']) ? $data['email'] : null; $this->container['display_name'] = isset($data['display_name']) ? $data['display_name'] : null; diff --git a/src/Model/SignerInputs.php b/src/Model/SignerInputs.php index 4d87a21..56d6a62 100644 --- a/src/Model/SignerInputs.php +++ b/src/Model/SignerInputs.php @@ -226,7 +226,7 @@ public function getTypeAllowableValues() * @param mixed[] $data Associated array of property values * initializing the model */ - public function __construct(array $data = null) + public function __construct(?array $data = null) { $this->container['type'] = isset($data['type']) ? $data['type'] : null; $this->container['page_index'] = isset($data['page_index']) ? $data['page_index'] : null; From 1a49f13571c0a64607558b05c06ca2c9f73b24b7 Mon Sep 17 00:00:00 2001 From: Greg Colley Date: Tue, 9 Dec 2025 09:29:47 +0000 Subject: [PATCH 10/12] Version bumped to v1.4.1 --- README.md | 4 ++-- composer.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index daa9786..84ff44e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ https://github.com/SignRequest/signrequest-php-example ## Requirements -PHP 5.5 and later +PHP 7.1 and later ## Installation & Usage ### Composer @@ -20,7 +20,7 @@ To install the bindings via [Composer](http://getcomposer.org/), add the followi ``` { "require": { - "signrequest/signrequest-client": "1.3.0" + "signrequest/signrequest-client": "1.4.1" } } ``` diff --git a/composer.json b/composer.json index 9c21091..8d50f79 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "liquidline/signrequest-php-client", - "version": "1.3.3", + "version": "1.4.1", "description": "Official PHP client for SignRequest.com (https://signrequest.com)", "keywords": [ "signrequest", From 72392943b5a3657b64f92bf12c21ff74df6b16d5 Mon Sep 17 00:00:00 2001 From: Greg Colley Date: Tue, 9 Dec 2025 09:31:50 +0000 Subject: [PATCH 11/12] readme updated --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 84ff44e..9c60418 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,18 @@ PHP 7.1 and later To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`: ``` +{ + "repositories": { + "liquidline/signrequest-php-client": { + "type": "vcs", + "url": "https://github.com/liquidline/signrequest-php-client.git" + }, + } +} +``` + + +``` { "require": { "signrequest/signrequest-client": "1.4.1" From 77647e452a572f34d167e7324c8214c52e850658 Mon Sep 17 00:00:00 2001 From: Greg Colley Date: Tue, 9 Dec 2025 10:06:43 +0000 Subject: [PATCH 12/12] More amends and version bump --- README.md | 2 +- composer.json | 2 +- src/Api/DocumentsApi.php | 6 +++--- src/Api/DocumentsSearchApi.php | 6 +++--- src/Api/EventsApi.php | 6 +++--- src/Api/SignrequestQuickCreateApi.php | 6 +++--- src/Api/TeamMembersApi.php | 6 +++--- src/Api/TeamsApi.php | 6 +++--- src/Api/TemplatesApi.php | 6 +++--- src/Api/WebhooksApi.php | 6 +++--- 10 files changed, 26 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 9c60418..aa14ea1 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ To install the bindings via [Composer](http://getcomposer.org/), add the followi ``` { "require": { - "signrequest/signrequest-client": "1.4.1" + "signrequest/signrequest-client": "1.4.2" } } ``` diff --git a/composer.json b/composer.json index 8d50f79..ff60d3c 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "liquidline/signrequest-php-client", - "version": "1.4.1", + "version": "1.4.2", "description": "Official PHP client for SignRequest.com (https://signrequest.com)", "keywords": [ "signrequest", diff --git a/src/Api/DocumentsApi.php b/src/Api/DocumentsApi.php index 56c3453..cf7ef64 100644 --- a/src/Api/DocumentsApi.php +++ b/src/Api/DocumentsApi.php @@ -68,9 +68,9 @@ class DocumentsApi * @param HeaderSelector $selector */ public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); diff --git a/src/Api/DocumentsSearchApi.php b/src/Api/DocumentsSearchApi.php index 88c5760..673d3dd 100644 --- a/src/Api/DocumentsSearchApi.php +++ b/src/Api/DocumentsSearchApi.php @@ -68,9 +68,9 @@ class DocumentsSearchApi * @param HeaderSelector $selector */ public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); diff --git a/src/Api/EventsApi.php b/src/Api/EventsApi.php index efda2ed..24853e9 100644 --- a/src/Api/EventsApi.php +++ b/src/Api/EventsApi.php @@ -68,9 +68,9 @@ class EventsApi * @param HeaderSelector $selector */ public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); diff --git a/src/Api/SignrequestQuickCreateApi.php b/src/Api/SignrequestQuickCreateApi.php index 0772980..17fb790 100644 --- a/src/Api/SignrequestQuickCreateApi.php +++ b/src/Api/SignrequestQuickCreateApi.php @@ -68,9 +68,9 @@ class SignrequestQuickCreateApi * @param HeaderSelector $selector */ public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); diff --git a/src/Api/TeamMembersApi.php b/src/Api/TeamMembersApi.php index 53ef5e8..adb5b6a 100644 --- a/src/Api/TeamMembersApi.php +++ b/src/Api/TeamMembersApi.php @@ -68,9 +68,9 @@ class TeamMembersApi * @param HeaderSelector $selector */ public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); diff --git a/src/Api/TeamsApi.php b/src/Api/TeamsApi.php index 2a52084..9989734 100644 --- a/src/Api/TeamsApi.php +++ b/src/Api/TeamsApi.php @@ -68,9 +68,9 @@ class TeamsApi * @param HeaderSelector $selector */ public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); diff --git a/src/Api/TemplatesApi.php b/src/Api/TemplatesApi.php index f512c26..951e966 100644 --- a/src/Api/TemplatesApi.php +++ b/src/Api/TemplatesApi.php @@ -68,9 +68,9 @@ class TemplatesApi * @param HeaderSelector $selector */ public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration(); diff --git a/src/Api/WebhooksApi.php b/src/Api/WebhooksApi.php index 1ad3b79..2cc8f12 100644 --- a/src/Api/WebhooksApi.php +++ b/src/Api/WebhooksApi.php @@ -68,9 +68,9 @@ class WebhooksApi * @param HeaderSelector $selector */ public function __construct( - ClientInterface $client = null, - Configuration $config = null, - HeaderSelector $selector = null + ?ClientInterface $client = null, + ?Configuration $config = null, + ?HeaderSelector $selector = null ) { $this->client = $client ?: new Client(); $this->config = $config ?: new Configuration();