Automate monthly reports via tracking service.
 
 
 
Go to file
Lio Novelli 270d58124e Working example of report command. 2021-04-05 16:23:06 +02:00
app Working example of report command. 2021-04-05 16:23:06 +02:00
.gitignore Working example of report command. 2021-04-05 16:23:06 +02:00
README.org Working example of report command. 2021-04-05 16:23:06 +02:00

README.org

Report cli

Automate generating invoices.

Usage

Install/Getting started

Get .phar file, run configuration wizzard.

Specs

A simple Console Command that prints out monthly report from youtrack.

Simple configuration:

  • authentication token value
  • project categories
  • hourly wage
  • folder for reports

Components

Motivation

  • practice php
  • automatization of repetitive task

    • is it worth it? according to xkcd table - you should spend 1 day for automating a monthly task that takes 30 minutes. That would be if only I'd be using this app. If it get's picked up, by 5 others - it is worth 5 days of development.
  • remove errors from reports

Plan

  1. Basic structure of the cli-app

    1. App preparation

      • nice specifications
      • composer project
      • autoloading & dependency injection
    2. Report service

      • read a local csv file
    3. Parse report

      • read configuration (project categories, hourly wage)
      • simple table output
  2. First round of enhancements

    1. Tests
    2. youtrack request
    3. create composer package, create executable
  3. Second round of enhancements

    1. Invoice output
    2. configuration wizard

Learning