mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-14 15:56:48 +03:00
56291a3c1d
TL;DR: polyfills are to be installed by downstream consumers, and not provided by libraries In order to support PHP 7.2, 7.3 and 7.4, the `symfony/polyfill-php80` library was dragged in. Symfony now has a long track record of bad stability ranges (see https://github.com/symfony/polyfill-php80/blob/f4386d7f6f66346254ed4e6bfa4354d2d16b83f8/composer.json#L22-L24), so it is best to get rid of it, and instead declare API compatibility with a stable API version (in this case PHP 8.0). In addition to that, to avoid introducing an explicit `ext-ctype` requirement, `symfony/polyfill-ctype` was dragged in too, perhaps in an attempt to retain more popularity. Same as above: symfony has a bad track record of SemVer compliance, so it should not be introduced until strictly necessary. `ext-ctype` is generally available to most target installation systems, and downstream consumers are still free to pull out their foot-gun by doing a `composer require symfony/polyfill-ctype` on their own. This mean that systems having `ext-ctype` installed will get an installation as expected: otherwise, any system that requires `ramsey/uuid` automatically becomes a system capable of providing `ext-ctype` API, which is just not true (before this change).
107 lines
3.5 KiB
JSON
107 lines
3.5 KiB
JSON
{
|
|
"name": "ramsey/uuid",
|
|
"type": "library",
|
|
"description": "A PHP library for generating and working with universally unique identifiers (UUIDs).",
|
|
"keywords": [
|
|
"uuid",
|
|
"identifier",
|
|
"guid"
|
|
],
|
|
"license": "MIT",
|
|
"require": {
|
|
"php": "^8.0",
|
|
"ext-ctype": "*",
|
|
"ext-json": "*",
|
|
"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",
|
|
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
|
|
"doctrine/annotations": "^1.8",
|
|
"ergebnis/composer-normalize": "^2.15",
|
|
"mockery/mockery": "^1.3",
|
|
"moontoast/math": "^1.1",
|
|
"paragonie/random-lib": "^2",
|
|
"php-mock/php-mock": "^2.2",
|
|
"php-mock/php-mock-mockery": "^1.3",
|
|
"php-parallel-lint/php-parallel-lint": "^1.1",
|
|
"phpbench/phpbench": "^1.0",
|
|
"phpstan/extension-installer": "^1.0",
|
|
"phpstan/phpstan": "^0.12",
|
|
"phpstan/phpstan-mockery": "^0.12",
|
|
"phpstan/phpstan-phpunit": "^0.12",
|
|
"phpunit/phpunit": "^8.5 || ^9",
|
|
"slevomat/coding-standard": "^7.0",
|
|
"squizlabs/php_codesniffer": "^3.5",
|
|
"vimeo/psalm": "^4.9"
|
|
},
|
|
"suggest": {
|
|
"ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.",
|
|
"ext-ctype": "Enables faster processing of character classification using ctype functions.",
|
|
"ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.",
|
|
"ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.",
|
|
"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
|
|
}
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Ramsey\\Uuid\\": "src/"
|
|
},
|
|
"files": [
|
|
"src/functions.php"
|
|
]
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Ramsey\\Uuid\\Benchmark\\": "tests/benchmark/",
|
|
"Ramsey\\Uuid\\StaticAnalysis\\": "tests/static-analysis/",
|
|
"Ramsey\\Uuid\\Test\\": "tests/"
|
|
}
|
|
},
|
|
"minimum-stability": "dev",
|
|
"prefer-stable": true,
|
|
"scripts": {
|
|
"analyze": [
|
|
"@phpstan",
|
|
"@psalm"
|
|
],
|
|
"build:clean": "git clean -fX build/",
|
|
"lint": "parallel-lint src tests",
|
|
"lint:paths": "parallel-lint",
|
|
"phpbench": "phpbench run",
|
|
"phpcbf": "phpcbf -vpw --cache=build/cache/phpcs.cache",
|
|
"phpcs": "phpcs --cache=build/cache/phpcs.cache",
|
|
"phpstan": [
|
|
"phpstan analyse --no-progress",
|
|
"phpstan analyse -c phpstan-tests.neon --no-progress"
|
|
],
|
|
"phpunit": "phpunit --verbose --colors=always",
|
|
"phpunit-coverage": "phpunit --verbose --colors=always --coverage-html build/coverage",
|
|
"psalm": "psalm --show-info=false --config=psalm.xml",
|
|
"test": [
|
|
"@lint",
|
|
"@phpbench",
|
|
"@phpcs",
|
|
"@phpstan",
|
|
"@psalm",
|
|
"@phpunit"
|
|
]
|
|
}
|
|
}
|