composer.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. "ext-json": "*",
  14. "brick/math": "^0.8.8 || ^0.9 || ^0.10 || ^0.11 || ^0.12",
  15. "ramsey/collection": "^1.2 || ^2.0"
  16. },
  17. "require-dev": {
  18. "captainhook/captainhook": "^5.10",
  19. "captainhook/plugin-composer": "^5.3",
  20. "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
  21. "doctrine/annotations": "^1.8",
  22. "ergebnis/composer-normalize": "^2.15",
  23. "mockery/mockery": "^1.3",
  24. "paragonie/random-lib": "^2",
  25. "php-mock/php-mock": "^2.2",
  26. "php-mock/php-mock-mockery": "^1.3",
  27. "php-parallel-lint/php-parallel-lint": "^1.1",
  28. "phpbench/phpbench": "^1.0",
  29. "phpstan/extension-installer": "^1.1",
  30. "phpstan/phpstan": "^1.8",
  31. "phpstan/phpstan-mockery": "^1.1",
  32. "phpstan/phpstan-phpunit": "^1.1",
  33. "phpunit/phpunit": "^8.5 || ^9",
  34. "ramsey/composer-repl": "^1.4",
  35. "slevomat/coding-standard": "^8.4",
  36. "squizlabs/php_codesniffer": "^3.5",
  37. "vimeo/psalm": "^4.9"
  38. },
  39. "replace": {
  40. "rhumsaa/uuid": "self.version"
  41. },
  42. "suggest": {
  43. "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.",
  44. "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.",
  45. "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.",
  46. "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter",
  47. "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type."
  48. },
  49. "minimum-stability": "dev",
  50. "prefer-stable": true,
  51. "autoload": {
  52. "psr-4": {
  53. "Ramsey\\Uuid\\": "src/"
  54. },
  55. "files": [
  56. "src/functions.php"
  57. ]
  58. },
  59. "autoload-dev": {
  60. "psr-4": {
  61. "Ramsey\\Uuid\\Benchmark\\": "tests/benchmark/",
  62. "Ramsey\\Uuid\\StaticAnalysis\\": "tests/static-analysis/",
  63. "Ramsey\\Uuid\\Test\\": "tests/"
  64. }
  65. },
  66. "config": {
  67. "allow-plugins": {
  68. "captainhook/plugin-composer": true,
  69. "ergebnis/composer-normalize": true,
  70. "phpstan/extension-installer": true,
  71. "dealerdirect/phpcodesniffer-composer-installer": true,
  72. "ramsey/composer-repl": true
  73. },
  74. "sort-packages": true
  75. },
  76. "extra": {
  77. "captainhook": {
  78. "force-install": true
  79. }
  80. },
  81. "scripts": {
  82. "analyze": [
  83. "@phpstan",
  84. "@psalm"
  85. ],
  86. "build:clean": "git clean -fX build/",
  87. "lint": "parallel-lint src tests",
  88. "lint:paths": "parallel-lint",
  89. "phpbench": "phpbench run",
  90. "phpcbf": "phpcbf -vpw --cache=build/cache/phpcs.cache",
  91. "phpcs": "phpcs --cache=build/cache/phpcs.cache",
  92. "phpstan": [
  93. "phpstan analyse --no-progress --memory-limit=1G",
  94. "phpstan analyse -c phpstan-tests.neon --no-progress --memory-limit=1G"
  95. ],
  96. "phpunit": "phpunit --verbose --colors=always",
  97. "phpunit-coverage": "phpunit --verbose --colors=always --coverage-html build/coverage",
  98. "psalm": "psalm --show-info=false --config=psalm.xml",
  99. "test": [
  100. "@lint",
  101. "@phpbench",
  102. "@phpcs",
  103. "@phpstan",
  104. "@psalm",
  105. "@phpunit"
  106. ]
  107. }
  108. }