composer.json 3.6 KB

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