Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.15 KB

installation_without_symfony_flex.md

File metadata and controls

43 lines (33 loc) · 1.15 KB

Installation without Symfony Flex

Prerequisites

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.

Installation

1️⃣ Require the bundle

composer require ajardin/blizzard-sdk-bundle

2️⃣ Enable the bundle

You have to register the bundle in your config/bundles.php file.

return [
    # ...
    Ajardin\BlizzardSdkBundle\AjardinBlizzardSdkBundle::class => ['all' => true],
    # ...
];

3️⃣ Declare the configuration

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)%'

Credentials management

You have to provide your own credentials (BLIZZARD_CLIENT_ID and BLIZZARD_SECRET) in dotenv files.