Skip to content

Commit c04a2a8

Browse files
committed
version 1 for kimai 2.0.x with new requirements
1 parent 335c9c1 commit c04a2a8

16 files changed

+593
-660
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
# Kimai 2 - Remote Console
1+
# Kimai - Remote Console
22

33
A PHP application to access your Kimai 2 installation via its API (http).
44

55
**Requirements**
66

7-
- PHP 7.4, 8.0 or 8.1
7+
- Kimai > v2.0.20
8+
- PHP 8.1 or 8.2
89
- cURL extension
910
- json extension
1011
- iconv extension
1112
- zlib extension
13+
- mbstring extension
1214

1315
## Installation
1416

bin/kimai

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if (false === in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
1313
exit(1);
1414
}
1515

16-
foreach (['json', 'iconv'] as $extension) {
16+
foreach (['json', 'iconv', 'mbstring', 'curl'] as $extension) {
1717
if (!extension_loaded($extension)) {
1818
fwrite(STDERR, sprintf("PHP extension ext-%s is missing from your system. Install or enable it.\n", $extension));
1919
exit(1);

composer.json

+7-13
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,21 @@
1010
}
1111
],
1212
"require": {
13-
"php": "7.4.*||8.0.*||8.1.*",
13+
"php": "8.1.*||8.2.*",
1414
"ext-iconv": "*",
1515
"ext-json": "*",
16-
"guzzlehttp/guzzle": "^6.5",
17-
"kimai/api-php": "^0.1.0",
18-
"symfony/console": "5.*"
16+
"ext-curl": "*",
17+
"ext-mbstring": "*",
18+
"kimai/api-php": "^1.0",
19+
"symfony/console": "6.*"
1920
},
2021
"require-dev": {
2122
"friendsofphp/php-cs-fixer": "^3.2",
2223
"phpstan/phpstan": "^1.0"
2324
},
2425
"config": {
2526
"platform": {
26-
"php": "7.4"
27+
"php": "8.1"
2728
},
2829
"preferred-install": {
2930
"*": "dist"
@@ -35,17 +36,10 @@
3536
"KimaiConsole\\": "src/"
3637
}
3738
},
38-
"replace": {
39-
"symfony/polyfill-iconv": "*",
40-
"symfony/polyfill-php72": "*"
41-
},
42-
"conflict": {
43-
"symfony/symfony": "*"
44-
},
4539
"extra": {
4640
"symfony": {
4741
"allow-contrib": false,
48-
"require": "5.*"
42+
"require": "6.*"
4943
}
5044
},
5145
"scripts": {

0 commit comments

Comments
 (0)