{
  "name": "nextcloud/forum",
  "description": "A community-driven forum built right into your Nextcloud instance",
  "license": "AGPL-3.0-or-later",
  "authors": [
    {
      "name": "Chen Asraf",
      "email": "contact@casraf.dev",
      "homepage": "https://casraf.dev"
    }
  ],
  "autoload": {
    "psr-4": {
      "OCA\\Pantry\\": "lib/"
    }
  },
  "scripts": {
    "post-install-cmd": [
      "@php -r \"if (getenv('COMPOSER_DEV_MODE') !== '0') { passthru(getenv('COMPOSER_BINARY').' bin all install --ansi'); }\""
    ],
    "post-update-cmd": [
      "@php -r \"if (getenv('COMPOSER_DEV_MODE') !== '0') { passthru(getenv('COMPOSER_BINARY').' bin all update --ansi'); }\""
    ],
    "lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './gen/*'  -not -path './build/*' -print0 | xargs -0 -n1 php -l",
    "cs:check": "php-cs-fixer fix --dry-run --diff",
    "cs:fix": "php-cs-fixer fix",
    "psalm": "psalm --threads=1 --no-cache",
    "test:unit": "phpunit tests -c tests/phpunit.xml --colors=always --fail-on-warning --fail-on-risky",
    "test:integration": "phpunit tests -c tests/phpunit.integration.xml --colors=always --fail-on-warning --fail-on-risky",
    "openapi": "generate-spec"
  },
  "require": {
    "php": "^8.2",
    "sabre/vobject": "^4.5",
    "sabre/xml": "^2.1"
  },
  "require-dev": {
    "bamarni/composer-bin-plugin": "^1.8",
    "nextcloud/ocp": "dev-stable32",
    "phpunit/phpunit": "^11.0"
  },
  "config": {
    "allow-plugins": {
      "bamarni/composer-bin-plugin": true
    },
    "audit": {
      "ignore": [
        "PKSA-5jz8-6tcw-pbk4",
        "PKSA-z3gr-8qht-p93v"
      ]
    },
    "optimize-autoloader": true,
    "sort-packages": true,
    "platform": {
      "php": "8.2"
    }
  },
  "extra": {
    "bamarni-bin": {
      "bin-links": true,
      "forward-command": true
    }
  }
}
