Download the PHP package verifymycontent/sdk without Composer
On this page you can find all versions of the php package verifymycontent/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download verifymycontent/sdk
More information about verifymycontent/sdk
Files in verifymycontent/sdk
Package sdk
Short Description VerifyMyContent SDK
License MIT
Homepage https://verifymycontent.com
Informations about the package sdk
VerifyMyContent PHP SDK
PHP SDK to use the VerifyMyContent services (Identity Verification, Content Moderation, and Content Complaint).
Installation
Get Started
The main class to handle the moderation integration process is the VerifyMyContent\VerifyMyContent. It will abstract the HMAC generation for the API calls.
Start an Identity Verification
Use the createIdentityVerification of the VerifyMyContent\SDK\IdentityVerification\IdentityVerificationClient abstraction inside VerifyMyContent\VerifyMyContent passing an VerifyMyContent\SDK\IdentityVerification\Entity\Requests\CreateIdentityVerificationRequest and receiving an VerifyMyContent\SDK\IdentityVerification\Entity\Responses\CreateIdentityVerificationResponse.
Retrieve Identity Verification by ID
Retrieves a specific identity verification to get current status.
- Pass the
idof the identity verification to thegetIdentityVerificationmethod of theVerifyMyContent\SDK\IdentityVerification\IdentityVerificationClientabstraction insideVerifyMyContent\VerifyMyContent. - Receive an
VerifyMyContent\SDK\IdentityVerification\Entity\Responses\GetIdentityVerificationResponse.
Receive an Identity Verification Webhook
Receive a webhook from VerifyMyContent when the identity verification status changes.
- Receive a webhook from VerifyMyContent with the
$_POSTdata that can be parsed using theVerifyMyContent\SDK\IdentityVerification\Entity\Requests\WebhookIdentityVerificationRequestclass.
Create a Static Content Moderation
Use the createStaticContentModeration of the VerifyMyContent\SDK\ContentModeration\ContentModerationClient abstraction inside VerifyMyContent\VerifyMyContent passing an VerifyMyContent\SDK\ContentModeration\Entity\Requests\CreateStaticContentModerationRequest and receiving an VerifyMyContent\SDK\ContentModeration\Entity\Responses\CreateStaticContentModerationResponse.
Retrieve Static Content Moderation by ID
Retrieves a specific moderation to get current status. Example:
- Receive an
VerifyMyContent\SDK\ContentModeration\Entity\Responses\GetStaticContentModerationResponse.
Receive a Static Content Moderation Webhook
- Receive a webhook from VerifyMyContent with the
$_POSTdata that can be parsed using theVerifyMyContent\SDK\ContentModeration\Entity\Requests\WebhookStaticContentModerationRequestclass.
Live Content
To moderate a live stream broadcast you'll need to use different APIs as described below.
Create a Live Content Moderation
Use the createLiveContentModeration of the VerifyMyContent\SDK\ContentModeration\ContentModerationClient abstraction inside VerifyMyContent\VerifyMyContent passing an VerifyMyContent\SDK\ContentModeration\Entity\Requests\CreateLiveContentModerationRequest and receiving an VerifyMyContent\SDK\ContentModeration\Entity\Responses\CreateLiveContentModerationResponse.
Start a created Live Content Moderation
When you receive the webhook with the status Authorised, it means you can now start to broadcast a live stream, you can then use the startLiveContentModeration method to trigger the moderation:
Receive a Live Content Moderation Webhook
- Receive a webhook from VerifyMyContent with the
$_POSTdata that can be parsed using theVerifyMyContent\SDK\ContentModeration\Entity\Requests\WebhookLiveContentModerationRequestclass.
Updating Live Stream moderation rules
This endpoint allows you to update the moderation rules for a specific live stream
Pausing Live Stream moderation
This endpoint allows you to pause the moderation for a specific live stream
Resume Live Stream moderation
This endpoint allows you to resume the moderation for a specific live stream
All versions of sdk with dependencies
verifymycontent/commons Version ^v1.0.2
ext-json Version *
php Version ^7.4|^8.0