Dependency | Version |
---|---|
php | >=8.0 |
symfony/framework-bundle | ^5.3 or ^6.0 |
symfony/http-client | ^5.3 or ^6.0 |
You also need a pair of client credentials that you can generate through the Blizzard Developer Portal.
composer require ajardin/blizzard-sdk-bundle
You have to register the bundle in your config/bundles.php
file.
return [
# ...
Ajardin\BlizzardSdkBundle\AjardinBlizzardSdkBundle::class => ['all' => true],
# ...
];
You have to add the following lines to a new config/packages/ajardin_blizzard_sdk.yaml
file.
ajardin_blizzard_sdk:
blizzard:
client_id: '%env(BLIZZARD_CLIENT_ID)%'
client_secret: '%env(BLIZZARD_SECRET)%'
You have to provide your own credentials (BLIZZARD_CLIENT_ID
and BLIZZARD_SECRET
) in dotenv files.