1. Go to this page and download the library: Download mabasic/wakatime-php-api 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/ */
mabasic / wakatime-php-api example snippets
composer
use GuzzleHttp\Client as Guzzle;
use Mabasic\WakaTime\WakaTime;
$wakatime = new WakaTime(new Guzzle, $your_api_key_for_wakatime);
$wakatime->currentUser()
// or
$wakatime->users('username');