Skip to content

Commit

Permalink
version 1 for kimai 2.0.x with new requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Jun 24, 2023
1 parent 335c9c1 commit c04a2a8
Show file tree
Hide file tree
Showing 16 changed files with 593 additions and 660 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# Kimai 2 - Remote Console
# Kimai - Remote Console

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

**Requirements**

- PHP 7.4, 8.0 or 8.1
- Kimai > v2.0.20
- PHP 8.1 or 8.2
- cURL extension
- json extension
- iconv extension
- zlib extension
- mbstring extension

## Installation

Expand Down
2 changes: 1 addition & 1 deletion bin/kimai
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (false === in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
exit(1);
}

foreach (['json', 'iconv'] as $extension) {
foreach (['json', 'iconv', 'mbstring', 'curl'] as $extension) {
if (!extension_loaded($extension)) {
fwrite(STDERR, sprintf("PHP extension ext-%s is missing from your system. Install or enable it.\n", $extension));
exit(1);
Expand Down
20 changes: 7 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@
}
],
"require": {
"php": "7.4.*||8.0.*||8.1.*",
"php": "8.1.*||8.2.*",
"ext-iconv": "*",
"ext-json": "*",
"guzzlehttp/guzzle": "^6.5",
"kimai/api-php": "^0.1.0",
"symfony/console": "5.*"
"ext-curl": "*",
"ext-mbstring": "*",
"kimai/api-php": "^1.0",
"symfony/console": "6.*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.2",
"phpstan/phpstan": "^1.0"
},
"config": {
"platform": {
"php": "7.4"
"php": "8.1"
},
"preferred-install": {
"*": "dist"
Expand All @@ -35,17 +36,10 @@
"KimaiConsole\\": "src/"
}
},
"replace": {
"symfony/polyfill-iconv": "*",
"symfony/polyfill-php72": "*"
},
"conflict": {
"symfony/symfony": "*"
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "5.*"
"require": "6.*"
}
},
"scripts": {
Expand Down
Loading

0 comments on commit c04a2a8

Please sign in to comment.