{
    "repositories": [
        {
            "type": "composer",
            "url": "https://repo.koolreport.com"
        }
    ],
    "require": {
        "smalot/pdfparser": "^2.12",
        "phpoffice/phpword": "^1.4",
        "phpoffice/phpspreadsheet": "^1.18",
        "tijsverkoyen/css-to-inline-styles": "^2.3",
        "maennchen/zipstream-php": "^2.4",
        "chrome-php/chrome": "^1.14",
        "setasign/fpdi": "^2.6",
        "tecnickcom/tcpdf": "^6.10",
        "koolphp/koolreport": "*",
        "koolreport/pro": "*",
        "koolreport/export": "*"
    },
    "scripts": {
        "post-install-cmd": [
            "@install-chrome",
            "@install-mdbtools"
        ],
        "post-update-cmd": [
            "@install-chrome",
            "@install-mdbtools"
        ],
        "install-chrome": [
            "echo 'Checking for Chrome installation...'",
            "which google-chrome-stable || (wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/chrome.deb && sudo apt install -y /tmp/chrome.deb && rm /tmp/chrome.deb) || echo 'Chrome installation requires manual setup'"
        ],
        "install-mdbtools": [
            "echo 'Checking for mdbtools installation...'",
            "which mdb-export || (sudo apt-get update && sudo apt-get install -y mdbtools) || echo 'mdbtools installation requires manual setup'"
        ]
    }
}
