PHPackages                             onkeltem/toggl-report - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. onkeltem/toggl-report

ActiveProject[HTTP &amp; Networking](/categories/http)

onkeltem/toggl-report
=====================

Toggl.com CLI reporting tool.

0.0.1(6y ago)12[1 issues](https://github.com/OnkelTem/toggl-report/issues)LGPL-3.0-or-laterPHP

Since Mar 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/OnkelTem/toggl-report)[ Packagist](https://packagist.org/packages/onkeltem/toggl-report)[ RSS](/packages/onkeltem-toggl-report/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Toggl.com CLI reporting tool
============================

[](#togglcom-cli-reporting-tool)

`toggl-report` is a command-line tool for connecting to your Toggl account and creating a nice looking report of your "time expenses" grouped by date or task.

It was created to get the clean picture of time spent and use it then to transfer log data into RedMine, Jira - easily yet manually.

Demo
----

[](#demo)

Grouping by date:

[![Report for the last 10 days grouped by date](https://user-images.githubusercontent.com/114060/75772485-1aba9a80-5d5d-11ea-9bf2-3d307316be25.png)](https://user-images.githubusercontent.com/114060/75772485-1aba9a80-5d5d-11ea-9bf2-3d307316be25.png)

Grouping by task:

[![Report for the last 10 days grouped by task](https://user-images.githubusercontent.com/114060/75771205-8d764680-5d5a-11ea-8b66-1193267b5179.png)](https://user-images.githubusercontent.com/114060/75771205-8d764680-5d5a-11ea-8b66-1193267b5179.png)

Prerequisites
-------------

[](#prerequisites)

In order to use this package you need to install [Composer](https://getcomposer.org/).

Installation
------------

[](#installation)

```
$ composer require onkeltem/toggl-report

```

Usage
-----

[](#usage)

Example invocation:

```
$ vendor/bin/toggl -te7581a1373e5f723e205679f0a075aa7 -p12693340 -n30 -T

```

This would print report grouped by **task** for the last **30** days for a project with ID **12693340**. The auth token is passed via `-t` option.

You can save typing by storing `token` and `project_id` in the **config.php** file, e.g.:

```
