Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 3d14463

Browse files
committed
first working prototype
0 parents  commit 3d14463

File tree

9 files changed

+1513
-0
lines changed

9 files changed

+1513
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.idea/
2+
/vendor/
3+
.DS_STORE
4+
.gitlab-time.yml

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM php:7.1

bin/gtt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#! /usr/bin/env php
2+
3+
<?php
4+
5+
$sourceGlobal = __DIR__ . '/../kriskbx/gitlab-time-tracker/src/index.php';
6+
$sourceLocal = __DIR__ . '/../src/index.php';
7+
8+
if ( file_exists( $sourceGlobal ) ) {
9+
include $sourceGlobal;
10+
} elseif ( file_exists( $sourceLocal ) ) {
11+
include $sourceLocal;
12+
} else {
13+
throw new Exception( "Can't find source!" );
14+
}

composer.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "kriskbx/gitlab-time-tracker",
3+
"license": "GPL v2",
4+
"authors": [
5+
{
6+
"name": "Kris Siepert",
7+
"email": "[email protected]"
8+
}
9+
],
10+
"require": {
11+
"symfony/console": "^3.2",
12+
"m4tthumphrey/php-gitlab-api": "^7.15",
13+
"illuminate/support": "^5.4",
14+
"nesbot/carbon": "^1.22",
15+
"symfony/yaml": "^3.2"
16+
},
17+
"autoload": {
18+
"psr-4": {
19+
"kriskbx\\gtt\\": "src"
20+
}
21+
},
22+
"bin": [
23+
"bin/gtt"
24+
]
25+
}

0 commit comments

Comments
 (0)