PHPackages                             borivojevic/rescuetime - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. borivojevic/rescuetime

ActiveLibrary[API Development](/categories/api)

borivojevic/rescuetime
======================

PHP wrapper library for RescueTime API

2.2.0(9y ago)132833MITPHPPHP &gt;=5.4.0

Since Sep 30Pushed 9y ago2 watchersCompare

[ Source](https://github.com/borivojevic/rescuetime-api-php)[ Packagist](https://packagist.org/packages/borivojevic/rescuetime)[ Docs](https://github.com/borivojevic/rescuetime-api-php)[ RSS](/packages/borivojevic-rescuetime/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

[![Build Status](https://camo.githubusercontent.com/e9d8a36a5706e7a708004f4a1f8d85083ac1af2009b0a5c5d4e8f54548972bf7/68747470733a2f2f7472617669732d63692e6f72672f626f7269766f6a657669632f72657363756574696d652d6170692d7068702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/borivojevic/rescuetime-api-php)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/fd13b492fd8cbf76455e046385fdeee65ab14561804f3f71f6f2c3014f89c626/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f7269766f6a657669632f72657363756574696d652d6170692d7068702f6261646765732f7175616c6974792d73636f72652e706e673f733d36383862623638396261386439383063303635323637383365313339653865666331333532386335)](https://scrutinizer-ci.com/g/borivojevic/rescuetime-api-php/)[![Code Coverage](https://camo.githubusercontent.com/c22d4762742a165351d217c38ec3c583ef769db42567c556de63531831e8d14e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f7269766f6a657669632f72657363756574696d652d6170692d7068702f6261646765732f636f7665726167652e706e673f733d30653666666239626662626631653331616137666432666638643139363537656461383831313239)](https://scrutinizer-ci.com/g/borivojevic/rescuetime-api-php/)[![Latest Stable Version](https://camo.githubusercontent.com/d2a7e65b5b806ede7572f07a923deab005821ebc2059d88bea569fea3ed1c6dc/68747470733a2f2f706f7365722e707567782e6f72672f626f7269766f6a657669632f72657363756574696d652f762f737461626c652e706e67)](https://packagist.org/packages/borivojevic/rescuetime)

rescuetime-api-php
==================

[](#rescuetime-api-php)

PHP wrapper library for [RescueTime](https://www.rescuetime.com) API

At this point RescueTime API provides single endpoint to fetch detailed and complicated data. The data is read-only through the API.

Initial release of RescueTime API is targeted at bringing developers the prepared and pre-organized data structures already familiar through the reporting views of [www.rescuetime.com](http://www.rescuetime.com). Keep in mind this is a draft interface, and may change in the future. RescueTime do intend to version the interfaces though, so it is likely forward compatible.

### Installation

[](#installation)

Recommend way to install this package with [Composer](http://getcomposer.org/). Add borivojevic/rescuetime-api-php to your composer.json file.

```
{
    "require": {
        "borivojevic/rescuetime": "2.*"
    }
}
```

To install composer run:

```
curl -s http://getcomposer.org/installer | php

```

To install composer dependences run:

```
php composer.phar install

```

You can autoload all dependencies by adding this to your code:

```
require 'vendor/autoload.php';

```

### Usage

[](#usage)

The main entry point of the library is the `RescueTime\Client` class. API methods require to be signed with valid `api_key` parameter which you have to provide as a first argument of the constructor. You can obtain RescueTime API key on [API Key Management](https://www.rescuetime.com/anapi/manage) console page.

```
