From c37e931389e635044b115427906a1d413188c07a Mon Sep 17 00:00:00 2001 From: lotyp Date: Fri, 10 May 2024 16:35:24 +0300 Subject: [PATCH] feat: add composer normalize plugin --- composer.json | 64 +++++++++++++++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 25 deletions(-) diff --git a/composer.json b/composer.json index 582aeced..e61f6cc7 100644 --- a/composer.json +++ b/composer.json @@ -1,11 +1,20 @@ { "name": "buggregator/trap", - "type": "library", - "license": "BSD-3-Clause", "description": "A simple and powerful tool for debugging PHP applications.", - "homepage": "https://buggregator.dev/", + "license": "BSD-3-Clause", + "type": "library", "keywords": [ - "debug", "cli", "console", "sentry", "smtp", "dump", "binary dump", "websockets", "server", "helper", "dev" + "debug", + "cli", + "console", + "sentry", + "smtp", + "dump", + "binary dump", + "websockets", + "server", + "helper", + "dev" ], "authors": [ { @@ -17,22 +26,7 @@ "homepage": "https://github.com/butschster" } ], - "autoload": { - "psr-4": { - "Buggregator\\Trap\\": "src/" - }, - "files": [ - "src/functions.php" - ] - }, - "autoload-dev": { - "psr-4": { - "Buggregator\\Trap\\Tests\\": "tests/" - } - }, - "bin": [ - "bin/trap" - ], + "homepage": "https://buggregator.dev/", "funding": [ { "type": "github", @@ -47,11 +41,6 @@ "url": "https://patreon.com/butschster" } ], - "config": { - "sort-packages": true - }, - "minimum-stability": "dev", - "prefer-stable": true, "require": { "php": ">=8.1", "ext-sockets": "*", @@ -67,6 +56,7 @@ }, "require-dev": { "dereuromark/composer-prefer-lowest": "^0.1.10", + "ergebnis/composer-normalize": "^2.42", "friendsofphp/php-cs-fixer": "^3.54", "google/protobuf": "^3.23", "phpunit/phpunit": "^10.4", @@ -77,6 +67,30 @@ "ext-simplexml": "To load trap.xml", "roxblnfk/unpoly": "If you want to remove unnecessary PHP polyfills depend on PHP version." }, + "minimum-stability": "dev", + "prefer-stable": true, + "autoload": { + "psr-4": { + "Buggregator\\Trap\\": "src/" + }, + "files": [ + "src/functions.php" + ] + }, + "autoload-dev": { + "psr-4": { + "Buggregator\\Trap\\Tests\\": "tests/" + } + }, + "bin": [ + "bin/trap" + ], + "config": { + "allow-plugins": { + "ergebnis/composer-normalize": true + }, + "sort-packages": true + }, "scripts": { "cs-check": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --dry-run", "cs-fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php -vvv --using-cache=no"