PHP code example of malikzohaib / openid4vp-eudi-verifier
1. Go to this page and download the library: Download malikzohaib/openid4vp-eudi-verifier library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
malikzohaib / openid4vp-eudi-verifier example snippets
udi\VerifierCore\Dcql\CredentialQuery;
use Eudi\VerifierCore\Dcql\DcqlQuery;
use Eudi\VerifierCore\Domain\PresentationRequest;
$request = new PresentationRequest(
dcql: new DcqlQuery([
CredentialQuery::sdJwt(
id: 'identity',
vct: 'urn:example:identity-credential',
claimNames: ['given_name', 'family_name'],
),
]),
purpose: 'Verify your identity',
);