{
    "name": "anbt/backend",
    "description": "ANBT Battery Shop Backend API",
    "type": "project",
    "license": "proprietary",
    "require": {
        "php": ">=8.1",
        "firebase/php-jwt": "^6.10",
        "monolog/monolog": "^3.7",
        "predis/predis": "^2.0",
        "sentry/sentry": "^4.10"
    },
    "autoload": {
        "psr-4": {
            "App\\": "src/"
        }
    },
    "require-dev": {
        "friendsofphp/php-cs-fixer": "^3.64",
        "mockery/mockery": "^1.6",
        "phpstan/phpstan": "^1.12",
        "phpunit/phpunit": "^11.5",
        "robmorgan/phinx": "^0.16.12"
    },
    "scripts": {
        "test": "phpunit --testdox",
        "test:unit": "phpunit --testsuite unit --testdox",
        "test:integration": "phpunit --testsuite integration --testdox",
        "test:arch": "phpunit --testsuite architecture --testdox",
        "stan": "phpstan analyse",
        "lint": "php-cs-fixer fix --dry-run --diff",
        "fix": "php-cs-fixer fix",
        "quality": [
            "@lint",
            "@stan",
            "@test:arch"
        ],
        "openapi:check": "php tools/openapi-check.php",
        "db:status": "phinx status -e development",
        "db:migrate": "phinx migrate -e development",
        "db:rollback": "phinx rollback -e development",
        "db:validate": "php tools/migration-prefix-check.php",
        "db:drift": "php tools/schema-drift.php"
    },
    "scripts-descriptions": {
        "test:arch": "Run architecture guard tests (layering, DI budgets, repository hygiene).",
        "quality": "Run style check, static analysis and architecture guards in order."
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "config": {
        "optimize-autoloader": true,
        "sort-packages": true,
        "allow-plugins": {
            "phpstan/extension-installer": true
        }
    }
}
