PHP code example of irma / requestor

1. Go to this page and download the library: Download irma/requestor 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/ */

    

irma / requestor example snippets



$requestor = new \IRMA\Requestor("Name", "id", "privatekey.pem");

$jwt = $requestor->getVerificationJwt([
	[
		"label" => "IRMATube member type",
		"attributes" => [ "irma-demo.IRMATube.member.type" ]
	]
]);

$jwt = $requestor->getIssuanceJwt([
	[
		"credential" => "irma-demo.IRMATube.member",
		"attributes" => [ "type" => "regular", "id" => "2" ]
	]
]);