dylandelobel / brawlhalla-api-bundle
Symfony wrapper for Brawlhalla API
Package info
github.com/DylanDelobel/brawlhalla-api-bundle
Type:symfony-bundle
pkg:composer/dylandelobel/brawlhalla-api-bundle
dev-master
2020-03-16 15:56 UTC
Requires
- php: ^7.1.3
- guzzlehttp/guzzle: ^6.5
This package is auto-updated.
Last update: 2026-03-17 05:42:49 UTC
README
Symfony wrapper for Brawlhalla API
Installation
Create brawlhalla_api_bundle.yaml with the following
brawlhalla_api: api_key: '%env(BRAWL_API_KEY)%'
In your .env.local the dev key
###> dylandelobel/brawlhalla-api-bundle ###
BRAWL_API_KEY=xxx
###< dylandelobel/brawlhalla-api-bundle ###
Require the package
composer require dylandelobel/brawlhalla-api-bundle
Usage
public function brawl(BrawlhallaClient $brawlhallaClient) { $request = $brawlhallaClient->getClan(1); $json = json_decode($request->getBody()); return new JsonResponse($json); }
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.