{
  "name": "lloc/multisite-language-switcher",
  "description": "Multisite Language Switcher",
  "type": "wordpress-plugin",
  "license": "GPL-2.0-or-later",
  "homepage": "http://msls.co",
  "require": {
    "php": ">=7.4",
    "composer/installers": "~2.3.0",
    "ext-json": "*"
  },
  "require-dev": {
    "phpunit/phpunit": "^10",
    "brain/monkey": "^2.6",
    "phpstan/phpstan": "^2.1.0",
    "szepeviktor/phpstan-wordpress": "^2.0.0",
    "phpstan/extension-installer": "^1.3",
    "antecedent/patchwork": "^2.1",
    "squizlabs/php_codesniffer": "^3.9",
    "phpcompatibility/php-compatibility": "^9.3",
    "wp-coding-standards/wpcs": "^3.0",
    "smeghead/php-class-diagram": "^1.3",
    "phpstan/phpstan-mockery": "^2.0.0"
  },
  "autoload": {
    "psr-4": {
      "lloc\\Msls\\": "includes/"
    }
  },
  "autoload-dev": {
    "psr-4": {
      "lloc\\MslsTests\\": "tests/phpunit/"
    }
  },
  "scripts": {
    "test": "vendor/bin/phpunit",
    "coverage": "@php -d xdebug.mode=coverage vendor/bin/phpunit --coverage-html tests/coverage",
    "phpstan": "vendor/bin/phpstan analyze --memory-limit=1G",
    "php74": "phpcs -p ./*.php includes/ --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 7.4",
    "php82": "phpcs -p ./*.php includes/ --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.2",
    "php83": "phpcs -p ./*.php includes/ --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.3",
    "php84": "phpcs -p ./*.php includes/ --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.4",
    "prepare": "wget -O build/translations.json http://api.wordpress.org/translations/core/1.0/",
    "flags-png": "php bin/flags-png.php > assets/flags/flags.php",
    "flags-svg": "php bin/flags-svg.php > assets/css-flags/flags.php",
    "diagram:class": "vendor/bin/php-class-diagram --php8 includes > docs/diagrams/msls-class.puml",
    "diagram:package": "vendor/bin/php-class-diagram --package-diagram --php8 includes > docs/diagrams/msls-package.puml",
    "git-release": "bin/git-release.sh",
    "playwright": [
      "npx playwright install --with-deps",
      "npx playwright test"
    ],
    "build": [
      "@prepare",
      "@flags-png",
      "@flags-svg",
      "npm ci",
      "npm run build",
      "@git-release"
    ],
    "githooks": [
      "if [ -e bin/githooks/pre-commit ]; then cp bin/githooks/pre-commit ./.git/hooks/; fi",
      "if [ -e .git/hooks/pre-commit ]; then chmod 0755 .git/hooks/pre-commit; fi"
    ],
    "post-install-cmd": [
      "@githooks"
    ],
    "post-update-cmd": [
      "@githooks"
    ]
  },
  "authors": [
    {
      "name": "Dennis Ploetner",
      "email": "re@lloc.de",
      "homepage": "http://lloc.de"
    }
  ],
  "keywords": [
    "multilingual",
    "multisite",
    "language",
    "switcher",
    "localization"
  ],
  "config": {
    "allow-plugins": {
      "composer/installers": true,
      "phpstan/extension-installer": true,
      "dealerdirect/phpcodesniffer-composer-installer": true
    }
  }
}
