PHP code example of kimealabs / symfony-eudi-wallet-bundle

1. Go to this page and download the library: Download kimealabs/symfony-eudi-wallet-bundle 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/ */

    

kimealabs / symfony-eudi-wallet-bundle example snippets


// Generate a presentation request (QR code or deeplink)
$request = $verifier->createPresentationRequest(['family_name', 'given_name', 'age_over_18']);
return $this->render('login.html.twig', ['qr' => $request->toQrCode()]);

// Verify the response from the wallet
$identity = $verifier->verify($request);
$identity->getFamilyName(); // "Dupont"
$identity->isAgeOver18();   // true