vonage/client-core
Core PHP client library for Vonage APIs (PHP 8.1+). Create a Vonage\Client with your API key/secret, make requests, and optionally customize base API URLs for testing. Install via Composer (vonage/client) or use core with your own HTTP client.
This is the final planned 4.x release. It introduces no breaking changes, but marks a large
number of APIs, classes, and methods as deprecated ahead of the 5.0.0 release. Every deprecated
path now emits an E_USER_DEPRECATED runtime warning in addition to a [@deprecated](https://github.com/deprecated) docblock, so
you can identify and update affected code before upgrading.
UPGRADE-5.0.md — a full upgrade guide documenting every breaking change planned for 5.0.05.0: Vonage\Meetings\Client, Vonage\ProactiveConnect\Client,
Vonage\SimSwap\Client, and Vonage\NumberVerification\ClientVonage\Client\Credentials\Gnp and its GNP auth handlers
(GnpKeypairHandler, SimSwapGnpHandler, NumberVerificationGnpHandler), plus the previously
deprecated BasicQueryHandler, TokenBodyHandler, and TokenQueryHandlerVonage\Client\Credentials\Keypair::getKey() — use getKeyRaw() insteadVonage\Client methods: send(), generateJwt() (use Vonage\JWT\TokenGenerator),
get(), post(), put(), delete(), postUrlEncoded(), signRequest(), authRequest(),
serialize(), and unserialize() — use APIResource directly for HTTP requestsgetAPIResource() / getApiResource() on all module clients (Account, Application,
Conversation, Conversion, Insights, Messages, Numbers, Redact, Secrets, SMS, Subaccount, Users,
Verify, Verify2, Voice) and on Vonage\Entity\IterableAPICollectionVonage\Client\APIClient interfaceVonage\Client\ClientAwareInterface and Vonage\Client\ClientAwareTrait — use constructor
injection insteadVonage\Client\Factory\MapFactory::hasApi() and getApi()Vonage\Entity\EntityInterface and Vonage\Entity\HasEntityTraitVonage\Application\ApplicationInterfaceVonage\Verify\Request, Vonage\Verify\RequestPSD2, and Vonage\Verify\VerificationInterfaceVonage\Voice\Call\Call and Vonage\Voice\Call\Inbound — use Vonage\Voice\OutboundCallVonage\Voice\NCCO\Action\Pay — being removed from the APIFull Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.13.0...v4.14.0
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.12.0...4.13.0
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.11.2...4.12.0
This PR adds about 2000 lines of new test coverage code, bringing the library up to about 85% coverage.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.11.1...4.11.2
This release is a hotfix to revert Verify (Legacy) back to the Token Body Handler.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.11.0...4.11.1
This release adds official support for PHP8.4 in composer, and switches the Accounts API auth mechanism to Basic Auth in the header.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.10.8...4.10.9
This release changes the auth method for Verify and Number Insight to be Basic in the header for security purposes.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.10.7...4.10.8
This release introduces PHP8.4 support by fixing any nullable type checks and adds 8.4 into the CI runner.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.10.6...4.10.7
This periodic release adds new functionality around DTMF events in NCCOs for the Voice client, plus the ability to delete a member in the conversations Client.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.10.5...4.10.6
Periodic patch release to add some missing features in Numbers and Messages, and remove Captions from WhatsApp Voice messages.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.10.4...4.10.5
This release fixes a bug with the validation of Messenger objects, and addresses an old issue on setting the fallback URL on an application.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.10.3...4.10.4
This release adds support for webhooks in the messages API and includes a bug fix for OwnedNumbers.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.10.2...4.10.3
This release fixes setting context on WhatsApp objects in the Messages Client, and contains a lot of linting fixes with phpcs.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.10.1...4.10.2
This release adds some nice-to-have validation to the Messages Client: You now cannot send a Message to the API in the SDK If it fails E.164 validation.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.10.0...4.10.1
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.9.0...4.10.0
This minor release contains the functionality for Custom Templates to be used in Verify. You can find more information about this functionality in the code snippets section here: https://developer.vonage.com/en/verify/code-snippets/create-template-v2?source=verify
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.8.8...4.9.0
This fix release is mainly to add the default option in advanced machine detection in the Voice API Client.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.8.7...4.8.8
This release deprecated the ProactiveConnect and Meetings API Clients, fixes NCCO bug issues and adds the RCS message functionality within the Messages Client.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.8.6...4.8.7
This release fixes async/sync behaviour of the Record NCCO when using timeouts.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.8.5...4.8.6
This release tidies up the test suite to refactor using a single trait for mock responses.
All tests that need mock responses. PSR7 Assertions was also duplicated so that has been removed.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.8.4...4.8.5
This release adds validation for Silent Auth requests to stop developers from sending chargeable invalid requests.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.8.3...4.8.4
This patch release contains extra Verify validation for the brand key.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.8.2...4.8.3
Hotfix patch release, also includes changes to timeout to allow for a minimum of 15 seconds.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.8.1...4.8.2
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.8.0...4.8.1
This release adds the latest Network APIs clients to the SDK. For usage, please see the readme.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.7.2...4.8.0
This is a hotfix release to reinstate the PSR 7 Assertion trait for the test library (no production impact)
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.7.1...4.7.2
This release cleans up orphaned code and fixes the Conversation client creation.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.7.0...4.7.1
This Release adds the Conversations API to the SDK.
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.6.6...4.7.0
Patch release to add more functionality to Verify v2 (or Verify in Vonage docs, v1 is 'legacy')
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.6.5...4.7.0
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/v4.6.4...4.6.5
Full Changelog: https://github.com/Vonage/vonage-php-sdk-core/compare/4.6.3...v4.6.4
How can I help you explore Laravel packages today?