定制 onkeltem/toggl-report 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

onkeltem/toggl-report

Composer 安装命令:

composer create-project onkeltem/toggl-report

包简介

Toggl.com CLI reporting tool.

README 文档

README

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

Grouping by date:

Report for the last 10 days grouped by date

Grouping by task:

Report for the last 10 days grouped by task

Prerequisites

In order to use this package you need to install Composer.

Installation

$ composer require onkeltem/toggl-report

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.:

<?php
    $toggl_token = 'e7581a1373e5f723e205679f0a075aa7';
    $project_id = '12693340';

Windows support

The toggl-report is a Linux shell script so it's not gonna run in Windows environment. I could have created a bat-file for Windows users, but that doesn't seem to be reasonable -- for example the console colors (used by this tool) will be broken too. On top of that, Microsoft has long been provided the support for the huge part of Linux known as Windows Subsystem for Linux. It brings nice terminal app, package managers like apt and allows to run bash scripts natively. So please, use it instead.

TODO

  • Switch to https://github.com/DataMincer/task-runner to get decent options parsing
  • Add explicit date period option (currently the end date equals present day)
  • Add JSON and CSV output format
  • Add support for multiple projects and accounts (tokens) (for teams maybe)
  • You suggestions? Welcome to the Issues

onkeltem/toggl-report 适用场景与选型建议

onkeltem/toggl-report 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 03 月 03 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「api」 「Guzzle」 「toggl」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 onkeltem/toggl-report 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 onkeltem/toggl-report 我们能提供哪些服务?
定制开发 / 二次开发

基于 onkeltem/toggl-report 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2020-03-03