composer.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. "name": "96qbhy/hyperf-auth",
  3. "description": "hyperf 的 auth 组件",
  4. "type": "library",
  5. "license": "MIT",
  6. "keywords": [
  7. "php",
  8. "hyperf",
  9. "hyperf-auth",
  10. "jwt-auth"
  11. ],
  12. "autoload": {
  13. "psr-4": {
  14. "Qbhy\\HyperfAuth\\": "src/"
  15. },
  16. "files": [
  17. "src/helper.php"
  18. ]
  19. },
  20. "autoload-dev": {
  21. "psr-4": {
  22. "HyperfTest\\": "tests"
  23. }
  24. },
  25. "require": {
  26. "php": ">=8.1",
  27. "96qbhy/simple-jwt": "^v1.5",
  28. "hyperf/cache": "^3.1",
  29. "hyperf/di": "^3.1",
  30. "ext-json": "*",
  31. "ext-redis": "*"
  32. },
  33. "suggest": {
  34. "ext-redis": "*"
  35. },
  36. "require-dev": {
  37. "brainmaestro/composer-git-hooks": "^2.8",
  38. "friendsofphp/php-cs-fixer": "^2.14",
  39. "hyperf/command": "^3.1",
  40. "hyperf/config": "^3.1",
  41. "hyperf/database": "^3.1",
  42. "hyperf/event": "^3.1",
  43. "hyperf/framework": "^3.1",
  44. "hyperf/redis": "^3.1",
  45. "hyperf/session": "^3.1",
  46. "hyperf/testing": "^3.1",
  47. "hyperf/utils": "^3.1",
  48. "itsgoingd/clockwork": "^5.0",
  49. "phpstan/phpstan": "^0.12",
  50. "swoft/swoole-ide-helper": "dev-master",
  51. "symfony/console": "^5.3",
  52. "symfony/var-dumper": "^5.3"
  53. },
  54. "minimum-stability": "dev",
  55. "config": {
  56. "sort-packages": true
  57. },
  58. "scripts": {
  59. "test": "phpunit -c phpunit.xml --colors=always",
  60. "analyse": "phpstan analyse --memory-limit 300M -l 0 ./src",
  61. "cs-fix": "php-cs-fixer fix $1",
  62. "post-install-cmd": "cghooks add --ignore-lock",
  63. "post-update-cmd": "cghooks update"
  64. },
  65. "extra": {
  66. "hyperf": {
  67. "config": "Qbhy\\HyperfAuth\\ConfigProvider"
  68. },
  69. "hooks": {
  70. "pre-commit": [
  71. "echo committing as $(git config user.name)",
  72. "vendor/bin/php-cs-fixer fix .",
  73. "git add .",
  74. "composer test"
  75. ]
  76. }
  77. },
  78. "repositories": {
  79. "packagist": {
  80. "type": "composer",
  81. "url": "https://mirrors.aliyun.com/composer/"
  82. }
  83. }
  84. }