{
	"name": "mediawiki/semantic-result-formats",
	"type": "mediawiki-extension",
	"description": "Provides additional result formats for queries using Semantic MediaWiki",
	"keywords": [
		"SRF",
		"Semantic Result Formats",
		"Result Formats",
		"SMW",
		"Semantic MediaWiki",
		"Wiki",
		"MediaWiki"
	],
	"homepage": "https://www.semantic-mediawiki.org/wiki/Extension:Semantic_Result_Formats",
	"license": "GPL-2.0-or-later",
	"authors": [
		{
			"name": "Jeroen De Dauw",
			"email": "jeroendedauw@gmail.com",
			"homepage": "https://www.entropywins.wtf/mediawiki",
			"role": "Developer"
		},
		{
			"name": "James Hong Kong",
			"homepage": "https://www.semantic-mediawiki.org/wiki/User:MWJames",
			"role": "Developer"
		},
		{
			"name": "Stephan Gambke",
			"homepage": "https://www.mediawiki.org/wiki/User:F.trott",
			"role": "Developer"
		},
		{
			"name": "Yaron Koren",
			"homepage": "https://www.yaronkoren.com/",
			"role": "Developer"
		}
	],
	"support": {
		"email": "semediawiki-user@lists.sourceforge.net",
		"issues": "https://github.com/SemanticMediaWiki/SemanticResultFormats/issues",
		"forum": "https://www.semantic-mediawiki.org/wiki/semantic-mediawiki.org_talk:Community_portal",
		"wiki": "https://www.semantic-mediawiki.org/wiki/",
		"source": "https://github.com/SemanticMediaWiki/SemanticResultFormats"
	},
	"require": {
		"php": ">=8.1",
		"composer/installers": ">=1.0.1",
		"nicmart/tree": "^0.4.0",
		"data-values/geo": "~4.0|~3.0|~2.0"
	},
	"suggest": {
		"phpoffice/phpspreadsheet": "Required for 'format=spreadsheet'",
		"phpoffice/phpexcel": "Required for 'format=excel'",
		"mediawiki/graph-viz": "Required for 'format=graph' and 'format=process'",
		"mediawiki/mermaid": "Required for 'format=gantt'"
	},
	"autoload": {
		"psr-4": {
			"SRF\\": "src/"
		},
		"files" : [
			"SemanticResultFormats.php"
		],
		"classmap": [
			"formats/",
			"SemanticResultFormats.hooks.php",
			"SemanticResultFormats.parser.php",
			"SemanticResultFormats.utils.php"
		]
	},
	"extra": {
		"branch-alias": {
			"dev-master": "4.0.x-dev"
		}
	},
	"config": {
		"process-timeout": 0,
		"allow-plugins": {
			"composer/installers": true,
			"dealerdirect/phpcodesniffer-composer-installer": true
		}
	},
	"scripts":{
		"test": [
			"@analyze",
			"@phpunit"
		],
		"test-coverage": [
			"@analyze",
			"@phpunit-coverage"
		],
		"analyze": [
			"@lint",
			"@phpcs",
			"@minus-x"
		],
		"fix": [
			"@phpcs-fix"
		],
		"phpunit": "php ${MW_INSTALL_PATH:-../..}/tests/phpunit/phpunit.php -c phpunit.xml.dist",
		"phpunit-coverage": "php ${MW_INSTALL_PATH:-../..}/tests/phpunit/phpunit.php -c phpunit.xml.dist --testdox --coverage-text --coverage-html coverage/php --coverage-clover coverage/php/coverage.xml",
		"post-test-coverage": [
			"sed -i 's|/var/www/html/extensions/SemanticResultFormats/||g' coverage/php/coverage.xml",
			"find coverage/php -type f -name '*.html' -exec sed -i 's|/var/www/html/extensions/||g' {} +"
		],
		"integration": "composer phpunit -- --testsuite=semantic-result-formats-integration",
		"phpcs": "phpcs -ps -d memory_limit=2G",
		"phpcs-fix": "phpcbf -p",
		"lint": "parallel-lint . --exclude vendor --exclude node_modules --exclude extensions",
		"minus-x": "minus-x check ."
	},
	"require-dev": {
		"mediawiki/mediawiki-codesniffer": "46.0.0",
		"mediawiki/minus-x": "1.1.3",
		"php-parallel-lint/php-console-highlighter": "1.0.0",
		"php-parallel-lint/php-parallel-lint": "1.4.0"
	}
}
