From 03a7016a6e3f493e42fc585872e0bbfc98a6fe4a Mon Sep 17 00:00:00 2001 From: Onni Hakala Date: Tue, 9 May 2017 15:10:40 +0300 Subject: [PATCH] Fix composer.json schema Fixes `$ composer validate`: ``` libraries/querypath/composer.json is valid for simple usage with composer but has strict errors that make it unable to be published as a package: See https://getcomposer.org/doc/04-schema.md for details on the schema Name "querypath/QueryPath" does not match the best practice (e.g. lower-cased/with-dashes). We suggest using "querypath/query-path" instead. As such you will not be able to submit it to Packagist. ``` --- composer.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 63e1c35d..170996e7 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "querypath/QueryPath", + "name": "querypath/querypath", "type": "library", "description": "HTML/XML querying (CSS 4 or XPath) and processing (like jQuery)", "homepage": "https://github.com/technosophos/querypath", @@ -9,6 +9,9 @@ "php" : ">=5.3.0", "masterminds/html5": "2.*" }, + "extra": { + "installer-name": "QueryPath" + }, "autoload": { "psr-0": {"QueryPath": "src/"}, "files": ["src/qp_functions.php"]