PHP code example of brainfab / toggl_sdk

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

    

brainfab / toggl_sdk example snippets




use Brainfab\Toggl\Toggl;

$apiKey = 'your api key';

$toggl = new Toggl($apiKey);
$account = $toggl->account()->me();

echo $account->fullname;