Closed
Conversation
* SDK-2795-php-upgrade-to-protobuf-4-33-6-and-phpseclib-3-0-50
…d from the idv pages (#409) * SDK-2791-php-add-support-for-retrieving-the-extraction-image-ids-field-from-the-idv-pages * Update README.md
* SDK-2742-php-expose-idv-breakdown-process-property
) * SDK-2215 allow rb to supply an applicant profile for identity profile sessions * SDK-2296 added allow rb to fetch application profile from get sessions * Add missing @throws DateTimeException annotations
There was a problem hiding this comment.
Pull request overview
Release 4.5.0 updates the PHP SDK’s platform/dependency baseline and extends the session create/retrieve models to expose new API fields (recommendations, applicant profiles, extraction image IDs, breakdown process).
Changes:
- Dropped PHP 7.4/8.0 support (PHP 8.1+ only) and updated CI matrix accordingly.
- Upgraded security-sensitive dependencies (
google/protobufto^4.33.6,phpseclib/phpseclibto^3.0.50) and bumped SDK version to4.5.0. - Added new SDK surface area for task recommendation, applicant profiles (create + retrieve), page extraction image IDs, and breakdown process.
Reviewed changes
Copilot reviewed 30 out of 30 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/DocScan/Session/Retrieve/TaskResponseTest.php | Adds coverage for deserializing recommendation on TaskResponse. |
| tests/DocScan/Session/Retrieve/TaskRecommendationResponseTest.php | New unit tests for TaskRecommendationResponse. |
| tests/DocScan/Session/Retrieve/TaskRecommendationReasonResponseTest.php | New unit tests for TaskRecommendationReasonResponse. |
| tests/DocScan/Session/Retrieve/ResourceContainerTest.php | Adds assertions/coverage for parsing applicant_profiles. |
| tests/DocScan/Session/Retrieve/PageResponseTest.php | Adds coverage for extraction_image_ids. |
| tests/DocScan/Session/Retrieve/BreakdownResponseTest.php | Adds coverage for new process field. |
| tests/DocScan/Session/Retrieve/ApplicantProfileResourceResponseTest.php | New unit tests for applicant profile resource deserialization. |
| tests/DocScan/Session/Create/StructuredPostalAddressBuilderTest.php | New tests for building/serializing structured postal addresses. |
| tests/DocScan/Session/Create/SessionSpecificationBuilderTest.php | Adds coverage for setting/serializing resources on session creation. |
| tests/DocScan/Session/Create/ResourceCreationContainerBuilderTest.php | New tests for building/serializing session resources container. |
| tests/DocScan/Session/Create/ApplicantProfileBuilderTest.php | New tests for building/serializing applicant profile. |
| src/DocScan/Session/Retrieve/TaskResponse.php | Deserializes task-level recommendation. |
| src/DocScan/Session/Retrieve/TaskRecommendationResponse.php | New response model for task recommendation payload. |
| src/DocScan/Session/Retrieve/TaskRecommendationReasonResponse.php | New response model for recommendation reason payload. |
| src/DocScan/Session/Retrieve/ResourceContainer.php | Adds parsing/accessor for applicant_profiles. |
| src/DocScan/Session/Retrieve/PageResponse.php | Adds extraction_image_ids storage + accessor. |
| src/DocScan/Session/Retrieve/BreakdownResponse.php | Adds process storage + accessor. |
| src/DocScan/Session/Retrieve/ApplicantProfileResourceResponse.php | New resource response type for applicant profiles. |
| src/DocScan/Session/Create/StructuredPostalAddressBuilder.php | New builder for StructuredPostalAddress. |
| src/DocScan/Session/Create/StructuredPostalAddress.php | New JSON-serializable model for structured postal address. |
| src/DocScan/Session/Create/SessionSpecificationBuilder.php | Adds withResources() and wires into build(). |
| src/DocScan/Session/Create/SessionSpecification.php | Adds resources field to session specification + serialization. |
| src/DocScan/Session/Create/ResourceCreationContainerBuilder.php | New builder for session resources container. |
| src/DocScan/Session/Create/ResourceCreationContainer.php | New JSON-serializable resources container (e.g., applicant_profile). |
| src/DocScan/Session/Create/ApplicantProfileBuilder.php | New builder for ApplicantProfile. |
| src/DocScan/Session/Create/ApplicantProfile.php | New JSON-serializable applicant profile model. |
| src/Constants.php | Bumps SDK version constant to 4.5.0. |
| README.md | Updates PHP requirement + install instructions for 4.5.0. |
| composer.json | Enforces PHP ^8.1, bumps dependencies, updates package version to 4.5.0. |
| .github/workflows/tests.yaml | Updates CI jobs to run on PHP 8.1–8.4 only. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jlmartyres
approved these changes
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 4.5.0
Breaking Changes
(Sdk 2795 php upgrade to protobuf 4 33 6 and phpseclib 3 0 50 #408)
Security Fixes
negative varints or deep recursion (GHSA-p2gh-cfq4-4wjc, HIGH) (Sdk 2795 php upgrade to protobuf 4 33 6 and phpseclib 3 0 50 #408)
(CVE-2026-32935, MEDIUM) (Sdk 2795 php upgrade to protobuf 4 33 6 and phpseclib 3 0 50 #408)
New Features
PageResponse::getExtractionImageIds()exposes which media wasused for automated data extraction on IDV document pages (Sdk 2791 php add support for retrieving the extraction image ids field from the idv pages #409)
BreakdownResponse::getProcess()exposes the breakdown processtype (
AUTOMATED/EXPERT_REVIEW) (Sdk 2742 php expose idv breakdown process property #410)TaskResponse::getRecommendation()deserializes task-levelrecommendation data including value, reason, and detail (SDK-2793-php-task-response-recommandation added #404)
address) when creating Identity Profile sessions via
SessionSpecificationBuilder(SDK-2215 allow rb to supply an applicant profile for identity profile… #405)GetSessionResultnow deserializesapplicant_profilesfrom session resources, exposing media, timestamps, and tasks (Sdk 2296 php allow rb to fetch applicant profile from get sessions #406)
PRs Included