PHP code example of picasticks / stravaclubtracker

1. Go to this page and download the library: Download picasticks/stravaclubtracker 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/ */

    

picasticks / stravaclubtracker example snippets


public __construct (string $storageDir)

public downloadClub (int $clubId)

public downloadClubActivities (int $clubId, int $start, int $end)

public getClubFilenames (void)

public getDataFilenames (int $clubId)

public getRequestCount (void)

public log (string $msg, int|null $error_type)

public setClient (Client $client)

public __construct (Club $data)

public getCSV (void)

public getClubHTML (int $clubId)

public getClubs (void)

public getPersonHTML (int $clubId, string $person)

public getPersonHTMLFilename (string $baseDir, int $clubId, string $person)

public getResults (void)

public getSportLeaders (string $sport)

public getSportLeadersHTML (string $sport, int $limit)

public getSummaryHTML (void)

public getTopActivities (int $clubId, string $person, string $sport)

public getTopActivitiesHTML (string $sport, int $limit)

public getTotal (string $type, int $clubId, string $person, string $sport)

public getTotals (int $clubId, string $person, string $sport)

public loadActivityData (void)

public setSport (string $sportId, array $attributes)

public setTemplateFunction (callable $function)

public whitelistActivity (string $id)

php build.php