PHP code example of huwcbjones / rankings-db

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

    

huwcbjones / rankings-db example snippets




// This file is generated by Composer
ersonal_key, $personal_key_id_number);


// This file is generated by Composer
personal_key, $personal_key_id_number);

// Get a member's details
$member = $client->getMemberDetails($member_id);

// Get their all time PBs
$options = new GetTimesBuilder($member->MemberID());
$times = $client->getTimes($options);

// Get their times from the past year
$options->setFromDate((new DateTime())->sub(new DateInterval("P1Y")));

$times = $client->getTimes($options);