PHP code example of tobymaxham / megapi-brawlstars
1. Go to this page and download the library: Download tobymaxham/megapi-brawlstars 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/ */
tobymaxham / megapi-brawlstars example snippets
use Zhylon\MegapiClient\Support\Facades\MegApi;
// Player related endpoints
MegApi::brawlstars('player', $playerTag);
MegApi::brawlstars('battlelog', $playerTag);
// Club related endpoints
MegApi::brawlstars('club', $clubTag);
MegApi::brawlstars('clubMembers', $clubTag);