Download the PHP package borivojevic/rescuetime without Composer
On this page you can find all versions of the php package borivojevic/rescuetime. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download borivojevic/rescuetime
More information about borivojevic/rescuetime
Files in borivojevic/rescuetime
Package rescuetime
Short Description PHP wrapper library for RescueTime API
License MIT
Homepage https://github.com/borivojevic/rescuetime-api-php
Informations about the package rescuetime
rescuetime-api-php
PHP wrapper library for RescueTime 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. 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
Recommend way to install this package with Composer. Add borivojevic/rescuetime-api-php to your composer.json file.
To install composer run:
To install composer dependences run:
You can autoload all dependencies by adding this to your code:
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 console page.
You can build more complex queries and filter down the data by providing other query parameters:
Each query parameter is explained in more details in official HTTP Query Interface documentation.
For a working example of an app build on top of rescuetime-api-php library take a look at borivojevic/rescuetime-statusboard.
Contributing
Patches and pull requests are welcome. Take a look at Contributing guidelines for further info.
Versioning
The library uses Semantic Versioning
Copyright and License
The library is licensed under the MIT license.