dbp/relay-educationalcredentials-bundle
Create Verifiable Credentials for your users:
"repositories": [
{
"type": "vcs",
"url": "git@gitlab.tugraz.at:dbp/relay/dbp-relay-educationalcredentials-bundle.git"
}
],
composer require dbp/relay-educationalcredentials-bundle=dev-main
config/bundles.php:...
Dbp\Relay\EducationalcredentialsBundle\DbpRelayEducationalcredentialsBundle::class => ['all' => true],
DBP\API\CoreBundle\DbpCoreBundle::class => ['all' => true],
];
composer install to clear cachesThe bundle has a issuer configuration value that you can specify in your
app, either by hardcoding it, or by referencing an environment variable.
For this create config/packages/dbp_relay_educationalcredentials.yaml in the app with the following
content:
dbp_relay_educationalcredentials:
issuer: "did:ebsi:abc..."
# issuer: '%env(VC_ISSUER)%'
urlIssuer: "http://localhost:13080/1.0/credentials/issue"
# urlIssuer: '%env(VC_URL_ISSUER)%'
urlVerifier: "http://localhost:14080/1.0/credentials/verify"
# urlIssuer: '%env(VC_URL_VERIFIER)%'
The value gets read in DbpRelayEducationalcredentialsExtension and passed when creating the
ConfigService service.
For more info on bundle configuration see https://symfony.com/doc/current/bundles/configuration.html
composer installcomposer testcomposer run lintcomposer run cs-fixDon't forget you need to pull down your dependencies in your main application if you are installing packages in a bundle.
# updates and installs dependencies from dbp/relay-educationalcredentials-bundle
composer update dbp/relay-educationalcredentials-bundle
How can I help you explore Laravel packages today?