Download the PHP package dcid/server-sdk without Composer
On this page you can find all versions of the php package dcid/server-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package server-sdk
DCID Server SDK for PHP
PHP SDK for the DCID Backend API. Provides authentication, identity management, encrypted credential storage (IPFS/blob storage), verification, and analytics capabilities.
Requirements
- PHP 8.1+
- Composer
Installation
Quick Start
Configuration
Modules
Authentication ($sdk->auth)
| Method | Description |
|---|---|
registerOtp(InitiateOTPOptions) |
Initiate OTP registration/sign-in |
confirmOtp(ConfirmOTPOptions) |
Confirm OTP and receive tokens |
adminLogin(InitiateOTPOptions) |
Initiate admin login |
refreshToken(RefreshTokenOptions) |
Refresh access token |
Identity - Encryption ($sdk->identity->encryption)
| Method | Description |
|---|---|
generateKey(GenerateEncryptionKeyOptions) |
Generate encryption key for a DID |
getKey(GetEncryptedKeyOptions) |
Retrieve encrypted key |
Identity - Issuer ($sdk->identity->issuer)
| Method | Description |
|---|---|
issueCredential(IssueCredentialOptions) |
Issue a verifiable credential |
getCredentialOffer(GetCredentialOfferOptions) |
Get credential offer status |
Identity - Encrypted Storage ($sdk->identity->ipfs)
Credential storage backed by IPFS or blob storage. All data is assumed to be pre-encrypted by the client before storage.
| Method | Description |
|---|---|
storeCredential(StoreCredentialOptions) |
Store an encrypted credential to IPFS/blob storage |
retrieveUserCredential(RetrieveUserCredentialOptions) |
Retrieve an encrypted credential |
getAllUserCredentials(GetAllUserCredentialsOptions) |
Get all encrypted credentials for a user |
Identity - Verification ($sdk->identity->verification)
| Method | Description |
|---|---|
verifySignIn(VerifySignInOptions) |
Initiate sign-in verification |
getLinkStore(GetLinkStoreOptions) |
Get stored proof request |
postLinkStore(PostLinkStoreOptions) |
Store proof request |
verifyCallback(VerifyCallbackOptions) |
Submit and verify proof response |
Analytics ($sdk->analytics)
| Method | Description |
|---|---|
startSession(?StartSessionEvent) |
Start analytics session |
endSession(EndSessionEvent) |
End analytics session |
Error Handling
Token Management
Tokens are automatically managed after confirmOtp() or refreshToken(). You can also manage them manually:
The SDK automatically refreshes expired access tokens on 401 responses.
License
MIT
All versions of server-sdk with dependencies
PHP Build Version
Package Version
The package dcid/server-sdk contains the following files
Loading the files please wait ...