Vonage / vonage-php-sdk-core

Vonage REST API client for PHP. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
https://developer.vonage.com/
Apache License 2.0
908 stars 181 forks source link

Feature/gnp number verification #483

Closed SecondeJK closed 1 month ago

SecondeJK commented 1 month ago

This PR completes the work needed to implement Number Verification and SIMSwap GNP.

Description

This is a significant release in that it introduces some new classes and behaviour. Firstly, it's worth noting that each API uses two different OAuth mechanisms, something that this SDK was not designed to do. From this perspective, the internals in order to be able to use them are somewhat against SOLID principals - each new API has it's own handler, and that handler behaves differently in each case.

Tech debt wise, this will be addressed with the introduction of PHP DI in v5.0 of this library.

The internals of this are not meant for developers to configure.

Motivation and Context

Evolution of Vonage PHP SDK

How Has This Been Tested?

Three new test suites have been added. One for the new type of OAuth handler, and one each for the new API clients.

Example Output or Screenshots (if appropriate):

Types of changes

Checklist: