Skip to content

davereid/toggl-php-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toggl PHP SDK

Provides a re-usable PHP library for interacting with the Toggl time tracking system's API.

Requirements

  • PHP 5.3 or higher
  • cURL extension
  • JSON extension
  • PHPUnit (for unit testing)

Usage

<?php
$api_token = '00000000000000000000000000000000'; // Valid Toggl.com API token
$connection = new TogglConnection($api_token);
$time_entry = TogglTimeEntry::load($connection, 1); // Load time entry #1.
$time_entry->description = 'New description for #1.'
$time_entry->save();
?>

License

The Toggl PHP SDK is dual licensed under the MIT and GPLv2 licenses.

Unit Tests

To run the unit tests included with the SDK, you must have PHPUnit installed. From the Toggl SDK directory, run phpunit tests to run all tests.

About

PHP SDK for the Toggl API

Resources

License

GPL-2.0, MIT licenses found

Licenses found

GPL-2.0
GPL-LICENSE.txt
MIT
MIT-LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages