定制 judahnator/time-tracker 二次开发

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

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

judahnator/time-tracker

Composer 安装命令:

composer create-project judahnator/time-tracker

包简介

A simple PHP time tracking application

README 文档

README

pipeline status

This is a super simple time tracking application built using the symfony console component.

I needed a time tracker, but did not really need a full web interface or a GUI to do something as simple as adding time logs to a CSV file. Not seeing a whole lot of options out in the wild, I decided to make my own.

Installation

You can install this project by running composer global require judahnator/time-tracker. That will install the package globally, and if your composer bin directory is added to your system $PATH variable you can use the timetracker command.

Next you will need to set your time log location. The log file will be formatted as CSV.

timetracker set:log '/full/path/to/your/spreadsheet.csv

Usage

You can find available commands by simply typing timetracker.

For a somewhat real-life example, say you wanted to start a timer for a client 'Trees Are Cool LLC'.

timetracker timer:start -c 'Trees Are Cool LLC' 'Doing some pretty rad work on the website'

You can see the active timer by using the list command.

timetracker timer:list

Say you wanted to edit the timer. You can use the timer:edit command interactively, or you can do it all with command options.

timetracker timer:edit 5b16b3cb74d7c -c='Trees Are Cool LLC' -d='Fixing CSS bug'

You then finish your work and want to add the time to the log. You use the timer:stop command here, it will help you pick which timer you want to stop and add to the log.

timetracker timer:stop

If you have a timer you wish to discard, you can use the timetracker timer:delete command.

Upgrade Help

When upgrading this package it is important to note that the internal cache file will be overwritten. This is not the end of the world since as of the time of writing this it only holds the log location and active timers.

If you have installed this project standalone, there are before and after update scripts to copy the internal cache file to your systems temporary file directory and back. These scripts will not run if the project has been installed globally via composer

If you don't want to lose your active timers if you have installed the package globally, you should add two scripts to your global composer.json file. Its specific location will vary from system to system, but on my personal rig it is located at ~/.config/composer/composer.json

The two scripts you need to add can be seen in this projects composer.json, just add them to your global composer.json and you should be golden. The file should look something like this:

{
    "require": {
        // other packages ...
        "judahnator/time-tracker": "^1.0"
    },
    "scripts": {
        "pre-update-cmd": "judahnator\\TimeTracker\\Update::preUpdate",
        "post-update-cmd": "judahnator\\TimeTracker\\Update::postUpdate"
    }
}

judahnator/time-tracker 适用场景与选型建议

judahnator/time-tracker 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 18 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 06 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 judahnator/time-tracker 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-04