{
    "name": "pathology-lab/management-system",
    "description": "Complete Pathology Lab Management System with PHP/MySQL backend",
    "type": "project",
    "keywords": ["pathology", "lab", "management", "medical", "reports", "billing"],
    "homepage": "https://github.com/yourusername/pathology-lab-system",
    "license": "MIT",
    "authors": [
        {
            "name": "Your Name",
            "email": "your.email@example.com",
            "role": "Developer"
        }
    ],
    "support": {
        "email": "support@patholab.com",
        "issues": "https://github.com/yourusername/pathology-lab-system/issues"
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    
    "require": {
        "php": ">=7.4.0",
        "phpmailer/phpmailer": "^6.8",
        "dompdf/dompdf": "^2.0",
        "picqer/php-barcode-generator": "^2.0",
        "ext-pdo": "*",
        "ext-json": "*",
        "ext-mbstring": "*",
        "ext-openssl": "*"
    },
    
    "require-dev": {
        "phpunit/phpunit": "^9.5",
        "squizlabs/php_codesniffer": "^3.7",
        "roave/security-advisories": "dev-latest"
    },
    
    "autoload": {
        "psr-4": {
            "PathologyLab\\": "includes/classes/",
            "PathologyLab\\Controllers\\": "modules/",
            "PathologyLab\\Models\\": "includes/models/",
            "PathologyLab\\Helpers\\": "includes/helpers/"
        },
        "files": [
            "includes/functions.php",
            "includes/db_connection.php",
            "includes/security_functions.php"
        ]
    },
    
    "autoload-dev": {
        "psr-4": {
            "PathologyLab\\Tests\\": "tests/"
        }
    },
    
    "scripts": {
        "post-install-cmd": [
            "@php -r \"if (!file_exists('.env')) { copy('.env.example', '.env'); echo 'Created .env file from .env.example\\n'; }\"",
            "@php -r \"if (!is_dir('uploads/reports')) { mkdir('uploads/reports', 0777, true); echo 'Created uploads/reports directory\\n'; }\"",
            "@php -r \"if (!is_dir('uploads/patient_files')) { mkdir('uploads/patient_files', 0777, true); echo 'Created uploads/patient_files directory\\n'; }\"",
            "@php -r \"if (!is_dir('logs')) { mkdir('logs', 0755, true); echo 'Created logs directory\\n'; }\""
        ],
        "post-update-cmd": [
            "@php -r \"echo 'Dependencies updated successfully\\n';\""
        ],
        "test": "phpunit --configuration phpunit.xml",
        "lint": "phpcs --standard=PSR12 modules/ includes/",
        "fix-style": "phpcbf --standard=PSR12 modules/ includes/"
    },
    
    "config": {
        "optimize-autoloader": true,
        "sort-packages": true,
        "allow-plugins": {
            "composer/package-versions-deprecated": true,
            "dealerdirect/phpcodesniffer-composer-installer": true
        }
    },
    
    "repositories": [
        {
            "type": "composer",
            "url": "https://repo.packagist.org"
        }
    ]
}