PHP SDK for the Toggl API
PHP
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
src Added documentation for TogglUtility. Jun 6, 2012
tests Moved source files to src sub-directory. Jul 4, 2011
.travis.yml Add Travis CI integration. Apr 26, 2012
GPL-LICENSE.txt Adding licenses. Jul 4, 2011
MIT-LICENSE.txt
README.md Update README.md Apr 26, 2012
phpunit.xml Try adding a phpunit.xml file. Jun 5, 2012

README.md

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.