| 1 |
{ |
| 2 |
"name": "ramsey/uuid", |
| 3 |
"description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", |
| 4 |
"license": "MIT", |
| 5 |
"type": "library", |
| 6 |
"keywords": [ |
| 7 |
"uuid", |
| 8 |
"identifier", |
| 9 |
"guid" |
| 10 |
], |
| 11 |
"require": { |
| 12 |
"php": "^8.0", |
| 13 |
"brick/math": ">=0.8.16 <=0.18", |
| 14 |
"ramsey/collection": "^1.2 || ^2.0" |
| 15 |
}, |
| 16 |
"require-dev": { |
| 17 |
"captainhook/captainhook": "^5.25", |
| 18 |
"captainhook/plugin-composer": "^5.3", |
| 19 |
"dealerdirect/phpcodesniffer-composer-installer": "^1.0", |
| 20 |
"ergebnis/composer-normalize": "^2.47", |
| 21 |
"mockery/mockery": "^1.6", |
| 22 |
"paragonie/random-lib": "^2", |
| 23 |
"php-mock/php-mock": "^2.6", |
| 24 |
"php-mock/php-mock-mockery": "^1.5", |
| 25 |
"php-parallel-lint/php-parallel-lint": "^1.4.0", |
| 26 |
"phpbench/phpbench": "^1.2.14", |
| 27 |
"phpstan/extension-installer": "^1.4", |
| 28 |
"phpstan/phpstan": "^2.1", |
| 29 |
"phpstan/phpstan-mockery": "^2.0", |
| 30 |
"phpstan/phpstan-phpunit": "^2.0", |
| 31 |
"phpunit/phpunit": "^9.6", |
| 32 |
"slevomat/coding-standard": "^8.18", |
| 33 |
"squizlabs/php_codesniffer": "^3.13" |
| 34 |
}, |
| 35 |
"replace": { |
| 36 |
"rhumsaa/uuid": "self.version" |
| 37 |
}, |
| 38 |
"suggest": { |
| 39 |
"ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", |
| 40 |
"ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", |
| 41 |
"ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", |
| 42 |
"paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", |
| 43 |
"ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." |
| 44 |
}, |
| 45 |
"minimum-stability": "dev", |
| 46 |
"prefer-stable": true, |
| 47 |
"autoload": { |
| 48 |
"psr-4": { |
| 49 |
"Ramsey\\Uuid\\": "src/" |
| 50 |
}, |
| 51 |
"files": [ |
| 52 |
"src/functions.php" |
| 53 |
] |
| 54 |
}, |
| 55 |
"autoload-dev": { |
| 56 |
"psr-4": { |
| 57 |
"Ramsey\\Uuid\\Benchmark\\": "tests/benchmark/", |
| 58 |
"Ramsey\\Uuid\\StaticAnalysis\\": "tests/static-analysis/", |
| 59 |
"Ramsey\\Uuid\\Test\\": "tests/" |
| 60 |
} |
| 61 |
}, |
| 62 |
"config": { |
| 63 |
"allow-plugins": { |
| 64 |
"captainhook/plugin-composer": true, |
| 65 |
"dealerdirect/phpcodesniffer-composer-installer": true, |
| 66 |
"ergebnis/composer-normalize": true, |
| 67 |
"phpstan/extension-installer": true |
| 68 |
}, |
| 69 |
"sort-packages": true |
| 70 |
}, |
| 71 |
"extra": { |
| 72 |
"captainhook": { |
| 73 |
"force-install": true |
| 74 |
} |
| 75 |
}, |
| 76 |
"scripts": { |
| 77 |
"dev:analyze": "@dev:analyze:phpstan", |
| 78 |
"dev:analyze:phpstan": "phpstan analyse --ansi --memory-limit 1G", |
| 79 |
"dev:bench": "@php -d 'error_reporting=24575' vendor/bin/phpbench run", |
| 80 |
"dev:build:clean": "git clean -fX build/", |
| 81 |
"dev:lint": [ |
| 82 |
"@dev:lint:syntax", |
| 83 |
"@dev:lint:style" |
| 84 |
], |
| 85 |
"dev:lint:fix": "phpcbf --cache=build/cache/phpcs.cache", |
| 86 |
"dev:lint:style": "phpcs --cache=build/cache/phpcs.cache --colors", |
| 87 |
"dev:lint:syntax": "parallel-lint --colors src/ tests/", |
| 88 |
"dev:test": [ |
| 89 |
"@dev:lint", |
| 90 |
"@dev:bench", |
| 91 |
"@dev:analyze", |
| 92 |
"@dev:test:unit" |
| 93 |
], |
| 94 |
"dev:test:coverage:ci": "@php -d 'xdebug.mode=coverage' vendor/bin/phpunit --colors=always --coverage-text --coverage-clover build/coverage/clover.xml --coverage-cobertura build/coverage/cobertura.xml --coverage-crap4j build/coverage/crap4j.xml --coverage-xml build/coverage/coverage-xml --log-junit build/junit.xml", |
| 95 |
"dev:test:coverage:html": "@php -d 'xdebug.mode=coverage' vendor/bin/phpunit --colors=always --coverage-html build/coverage/coverage-html/", |
| 96 |
"dev:test:unit": "phpunit --colors=always", |
| 97 |
"test": "@dev:test" |
| 98 |
}, |
| 99 |
"scripts-descriptions": { |
| 100 |
"dev:analyze": "Runs all static analysis checks.", |
| 101 |
"dev:analyze:phpstan": "Runs the PHPStan static analyzer.", |
| 102 |
"dev:bench": "Runs PHPBench benchmark tests.", |
| 103 |
"dev:build:clean": "Cleans the build/ directory.", |
| 104 |
"dev:lint": "Runs all linting checks.", |
| 105 |
"dev:lint:fix": "Auto-fixes coding standards issues, if possible.", |
| 106 |
"dev:lint:style": "Checks for coding standards issues.", |
| 107 |
"dev:lint:syntax": "Checks for syntax errors.", |
| 108 |
"dev:test": "Runs linting, static analysis, and unit tests.", |
| 109 |
"dev:test:coverage:ci": "Runs unit tests and generates CI coverage reports.", |
| 110 |
"dev:test:coverage:html": "Runs unit tests and generates HTML coverage report.", |
| 111 |
"dev:test:unit": "Runs unit tests.", |
| 112 |
"test": "Runs linting, static analysis, and unit tests." |
| 113 |
} |
| 114 |
} |