This script could help you calculate the time spent doing some activities and the wages for those. Works best if the calendar entries are in the format «[Client name] [Optional comments]»
-
Prerequisites: PHP 5.4+, Composer.
-
Clone this repository.
-
Run
composer install
inside the project directory. -
Register an app with Calendar API in the Google Developers Console
-
Create a
config.php
file with the following contents:<?php $cfg = array_merge($cfg, [ 'appId' => 'your client ID', 'appSecret' => 'your client secret', ]);
-
Open the web address.