Convert your Kiami timesheets into AbraFlexi invoices
Find a file
CyberVitexus ba4add4c7a fix: remove --ipc=host to prevent faked-sysv collision in parallel builds
Co-Authored-By: Oz <oz-agent@warp.dev>
2026-03-13 12:29:12 +01:00
.github Add exit code definitions to application schema 2025-11-20 23:04:59 +01:00
bin MultiFlexi definition added 2024-04-10 12:39:50 +02:00
debian fix: remove --ipc=host to prevent faked-sysv collision in parallel builds 2026-03-13 12:29:12 +01:00
multiflexi Improves multiflexi app validation and metadata clarity 2026-01-05 00:28:44 +01:00
src Updates dependencies and replaces deprecated function calls 2025-08-26 15:07:31 +02:00
.env.example Undefined defaults Fix 2022-11-05 17:45:57 +01:00
.gitignore php-cs-fixer used 2024-08-26 01:10:22 +02:00
abraflexi-kimai-importer.png Initial commit 2021-08-07 19:05:46 +02:00
abraflexi-kimai-importer.svg Initial commit 2021-08-07 19:05:46 +02:00
composer.json Updates dependencies and replaces deprecated function calls 2025-08-26 15:07:31 +02:00
Containerfile Try to build on bookworm 2024-04-10 13:15:04 +02:00
kimai_logo.png Initial commit 2021-08-07 19:05:46 +02:00
kimai_logo.svg Initial commit 2021-08-07 19:05:46 +02:00
kimaitoabraflexisocial.png Initial commit 2021-08-07 19:05:46 +02:00
kimaitoabraflexisocial.xcf Initial commit 2021-08-07 19:05:46 +02:00
LICENSE Initial commit 2021-08-07 14:43:29 +02:00
Makefile Improves multiflexi app validation and metadata clarity 2026-01-05 00:28:44 +01:00
README.md Add exit code definitions to application schema 2025-11-20 23:04:59 +01:00
WARP.md Fix MultiFlexi JSON schema compliance 2025-12-03 11:20:31 +01:00

Kimai to AbraFlexi

Logo

Process all time records within given scope into invoice with items grouped by Clients + Also the CSV Timesheet is attached to Invoice.

Commandline tool i used to issue AbraFlexi invoice using Kimai API

Configuration

Example environment or .env file contents:

KIMAI_HOST=your.server.com
KIMAI_USER=user.login
KIMAI_TOKEN=xxxxxx
KIMAI_SCOPE=last_month

ABRAFLEXI_URL="https://demo.abraflexi.eu:5434"
ABRAFLEXI_LOGIN="winstrom"
ABRAFLEXI_PASSWORD="winstrom"
ABRAFLEXI_COMPANY="demo"
ABRAFLEXI_CUSTOMER="DEMO"
ABRAFLEXI_TYP_FAKTURY="FAKTURA"
ABRAFLEXI_CENIK="WORK"
ABRAFLEXI_SEND=True
ABRAFLEXI_CC=some@recipient.com                 - into "poznam" field (abraflexi-mailer can handle it)
INVOICE_DOWNLOAD=true                           - into "reports" directory

REPORTS_DIR="/tmp/"

Scope can be: last_month or previous_month, two_months_ago, last_two_months, current_month* Or month name: January February March April May June July August September October November December

Running

run src/kimai2abraflexi.php

or

/usr/bin/kimai2abraflexi - generate invoices /usr/bin/kimai2xls - generate reports only

when installed from debian package

Installation

sudo apt install lsb-release wget apt-transport-https bzip2

wget -qO- https://repo.vitexsoftware.com/keyring.gpg | sudo tee /etc/apt/trusted.gpg.d/vitexsoftware.gpg
echo "deb [signed-by=/etc/apt/trusted.gpg.d/vitexsoftware.gpg]  https://repo.vitexsoftware.com  $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list

sudo apt update
sudo apt install abraflexi-kimai-importer

See also:

MultiFlexi

Kimai2AbraFlexi is ready for run as MultiFlexi application. See the full list of ready-to-run applications within the MultiFlexi platform on the application list page.

MultiFlexi App

Exit Codes

This application uses the following exit codes:

  • 0: Success
  • 1: General error