Skip to content

Feature/lp 956 update php sdk#18

Merged
Kaevan89 merged 15 commits intomainfrom
feature/LP-956-Update-PHP-SDK
Nov 26, 2025
Merged

Feature/lp 956 update php sdk#18
Kaevan89 merged 15 commits intomainfrom
feature/LP-956-Update-PHP-SDK

Conversation

@alejouribesanchez
Copy link
Copy Markdown
Collaborator

  • Added BankStatement process documents and GET endpoints
  • Added AnyDocs process documents and GET endpoints
  • Added W2 process documents and GET endpoints
  • Added some unit tests
  • Added missing PHP types for the functions
  • Added support for PHP 8.3
  • Update missing unit tests
  • Update to version 1.0.4

Added BankStatement process documents and GET endpoints
Added AnyDocs process documents and GET endpoints
Added W2 process documents and GET endpoints
Added some unit tests
Added missing PHP types for the functions
Added support for PHP 8.3
Update missing unit tests
Update to version 1.0.4
Add some links to the official documentation
Add missing additional arguments to the GET endpoints
keep pathinfo() is more versatile as it can extract other file path components (like file extension) if needed. Remove  file_get_contents() is simpler and reads the entire file at once. It’s easier to use, but can consume more memory for very large files since it loads everything into memory at once
Copy link
Copy Markdown

@manycoding manycoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

api/v8/contracts

Copy link
Copy Markdown
Collaborator

@Kaevan89 Kaevan89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix GET methods with query parameters.

Split ClientTest.php into multiple focused test classes for documents, checks, bank statements, business cards, line items, tags, and general client functionality. Updated GenerateSignature trait to handle CURLFile and object payloads more robustly. Upgraded phpunit/phpunit to version 12.3.0 in composer.json.
Replaces PHP versions 7.4, 8.0, 8.1, and 8.2 with 8.3 in main.yml and php.yml workflows. Also updates the code coverage commit condition to match PHP 8.3.
Changed all test files to import 'veryfi\Client' instead of 'veryfi\client' to match the correct class name and adhere to PSR standards. This improves consistency and prevents potential autoloading issues.
Migrated phpunit.xml configuration to support PHPUnit 10.x, updating schema location, adding bootstrap and cacheDirectory, and restructuring coverage and source sections for improved test and coverage management.
Introduces ClientCoverageTest to verify initialization and validation of LineItem and LineItemUpdate classes, as well as signature generation in the Client class. Ensures proper exception handling and coverage for various payload types.
Introduces new test methods for processing business cards, checks, and documents using file paths instead of base64. Existing base64 test methods are renamed for clarity. This improves test coverage and distinguishes between file and base64 input scenarios.
@Kaevan89 Kaevan89 merged commit 192c917 into main Nov 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants