Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

stevenklar/ctb

Repository files navigation

Console Time Booker (ctb)

This is a PHProjekt CLI Timebooker for guys who work on terminal all day and also want to book on it.

NOTE: This may not work with your PHProjekt version.

Installation

  1. Clone this git repository

  2. Add .env.php file to root directory with the following content.

<?php

return [
	'PHPROJEKT_URL' => 'https://phprojekt.yourcompany.de',
	'PHPROJEKT_USERNAME' => 'mmustermann',
	'PHPROJEKT_PASSWORD' => 'passwort'
];
  1. Start using ctb by using the listed features.

Features available

List today time bookings

php artisan time:list
+-------+---------+---------+
| Start | End     | Sum     |
+-------+---------+---------+
| 0900  | 1300    | 4 h 0 m |
| 1400  | 1800    | 4 h 0 m |
+-------+---------+---------+
|       | Overall | 8 h 0 m |
+-------+---------+---------+

List todays favorite project bookings

php artisan project:list
+---------------------+----------------------------+
| Project             | Bookings                   |
+---------------------+----------------------------+
| BizDev (1)          |                            |
+---------------------+----------------------------+
| Mayflower (2)       |                            |
+---------------------+----------------------------+
| Mobile-Shop-Dev (3) |                            |
+---------------------+----------------------------+
|                     | Noch zu vergeben: 9 h 0 m  |
| Overall             | 0 h 0 m                    |
+---------------------+----------------------------+

Book todays working time

php artisan time:book <start 0800> <end 1600>

Book todays project working time

php artisan project:book <projectID> <time 0100> <description Meeting>

NOTE: The projectID can be seen in project list (php artisan p:list)

Start working timer

php artisan time:start

Stop working timer

php artisan time:stop

Vacation and overtime overview

php artisan time:overview
+--------------------+-----------+
| Overtime           | 08 h 00 m |
| Vacation days left | 20.00     |
+--------------------+-----------+

#Features coming someday

  • List time/project bookings of this month
  • List time/project bookings of another day
  • Add time/project bookings to another day
  • Remove time/project bookings
  • Reminder with notification (Did you ctb'ed already?)

About

PHProjekt CLI Timebooker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages