1. Go to this page and download the library: Download dregozone/run-tools 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/ */
dregozone / run-tools example snippets
use Dregozone\RunTools\PaceCalculator;
// 5km in 25 minutes
$result = PaceCalculator::calculatePace(5000, 1500); // "05:00 per km"
// 10km in 1 hour
$result = PaceCalculator::calculatePace(10000, 3600); // "06:00 per km"
// Half marathon in 2 hours
$result = PaceCalculator::calculatePace(21100, 7200); // "05:41 per km"
$result = PaceCalculator::calculatePace(21100, 7200, 'km'); // "05:41 per km"
$result = PaceCalculator::calculatePace(21100, 7200, 'miles'); // "09:09 per mile"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.