Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/gnp number verification #483

Merged
merged 16 commits into from
Jun 28, 2024
Merged

Conversation

SecondeJK
Copy link
Contributor

@SecondeJK SecondeJK commented Jun 27, 2024

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

SecondeJK and others added 15 commits May 22, 2024 16:09
* WIP

* WIP

* WIP

* WIP

* WIP

* refactor to remove attempt at putting all event objects in

* Added docs

* phpstan fix number object
8.1 is minimum
* Big cleanup of unused internals

* clean some unused imports

* Fix baseline, mark some deprecations coming
Co-authored-by: yosh <yosh@latvm.unnamed.typo.pw>
* Finished GNP Auth and SimSwap MVP implementation

* Add documentation

* PSR-4 fix

* clean imports

* Finished GNP Auth and SimSwap MVP implementation

* bring psr7 trait back (#482)

* Fix broken git history
@SecondeJK SecondeJK self-assigned this Jun 27, 2024
@SecondeJK SecondeJK added enhancement release-candidate This PR will result in a release labels Jun 27, 2024
@SecondeJK SecondeJK merged commit 3680db7 into main Jun 28, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement release-candidate This PR will result in a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants