From a9d1aaed33d6afda6d77f47d45355824523926b6 Mon Sep 17 00:00:00 2001 From: Ben Ramsey Date: Sat, 26 Mar 2022 16:12:33 -0500 Subject: [PATCH] chore: allow plugins in composer.json --- composer.json | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/composer.json b/composer.json index ca50d1c..93f73c2 100644 --- a/composer.json +++ b/composer.json @@ -1,13 +1,13 @@ { "name": "ramsey/uuid", - "type": "library", "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "license": "MIT", + "type": "library", "keywords": [ "uuid", "identifier", "guid" ], - "license": "MIT", "require": { "php": "^8.0", "ext-ctype": "*", @@ -15,9 +15,6 @@ "brick/math": "^0.8 || ^0.9", "ramsey/collection": "^1.0" }, - "replace": { - "rhumsaa/uuid": "self.version" - }, "require-dev": { "captainhook/captainhook": "^5.10", "captainhook/plugin-composer": "^5.3", @@ -40,6 +37,9 @@ "squizlabs/php_codesniffer": "^3.5", "vimeo/psalm": "^4.9" }, + "replace": { + "rhumsaa/uuid": "self.version" + }, "suggest": { "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", "ext-ctype": "Enables faster processing of character classification using ctype functions.", @@ -48,17 +48,8 @@ "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." }, - "config": { - "sort-packages": true - }, - "extra": { - "branch-alias": { - "dev-main": "4.x-dev" - }, - "captainhook": { - "force-install": true - } - }, + "minimum-stability": "dev", + "prefer-stable": true, "autoload": { "psr-4": { "Ramsey\\Uuid\\": "src/" @@ -74,8 +65,23 @@ "Ramsey\\Uuid\\Test\\": "tests/" } }, - "minimum-stability": "dev", - "prefer-stable": true, + "config": { + "allow-plugins": { + "captainhook/plugin-composer": true, + "ergebnis/composer-normalize": true, + "phpstan/extension-installer": true, + "dealerdirect/phpcodesniffer-composer-installer": true + }, + "sort-packages": true + }, + "extra": { + "branch-alias": { + "dev-main": "4.x-dev" + }, + "captainhook": { + "force-install": true + } + }, "scripts": { "analyze": [ "@phpstan",