composer.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {
  2. "name": "w7corp/easywechat",
  3. "description": "微信SDK",
  4. "keywords": [
  5. "easywechat",
  6. "wechat",
  7. "weixin",
  8. "weixin-sdk",
  9. "sdk"
  10. ],
  11. "license": "MIT",
  12. "authors": [
  13. {
  14. "name": "overtrue",
  15. "email": "anzhengchao@gmail.com"
  16. }
  17. ],
  18. "require": {
  19. "php": ">=8.0.2",
  20. "ext-fileinfo": "*",
  21. "ext-openssl": "*",
  22. "ext-simplexml": "*",
  23. "ext-sodium": "*",
  24. "ext-libxml": "*",
  25. "ext-curl": "*",
  26. "monolog/monolog": "^2.2",
  27. "nyholm/psr7": "^1.5",
  28. "nyholm/psr7-server": "^1.0",
  29. "overtrue/socialite": "^3.5|^4.0.1",
  30. "psr/simple-cache": "^1.0|^2.0|^3.0",
  31. "psr/http-client": "^1.0",
  32. "symfony/cache": "^5.4|^6.0",
  33. "symfony/http-foundation": "^5.4|^6.0",
  34. "symfony/psr-http-message-bridge": "^2.1.2",
  35. "symfony/http-client": "^5.4|^6.0",
  36. "symfony/mime": "^5.4|^6.0",
  37. "symfony/polyfill-php81": "^1.25",
  38. "thenorthmemory/xml": "^1.0"
  39. },
  40. "require-dev": {
  41. "brainmaestro/composer-git-hooks": "^2.8",
  42. "mikey179/vfsstream": "^1.6",
  43. "mockery/mockery": "^1.4.4",
  44. "phpstan/phpstan": "^1.0",
  45. "phpunit/phpunit": "^9.5",
  46. "symfony/var-dumper": "^5.2",
  47. "jetbrains/phpstorm-attributes": "^1.0",
  48. "laravel/pint": "^1.2"
  49. },
  50. "autoload": {
  51. "psr-4": {
  52. "EasyWeChat\\": "src/"
  53. }
  54. },
  55. "autoload-dev": {
  56. "psr-4": {
  57. "EasyWeChat\\Tests\\": "tests/"
  58. }
  59. },
  60. "extra": {
  61. "hooks": {
  62. "pre-commit": [
  63. "composer check-style",
  64. "composer phpstan",
  65. "composer test"
  66. ],
  67. "pre-push": [
  68. "composer check-style"
  69. ],
  70. "config": {
  71. "stop-on-failure": [
  72. "pre-commit",
  73. "pre-push"
  74. ]
  75. }
  76. }
  77. },
  78. "scripts": {
  79. "post-update-cmd": [
  80. "cghooks remove",
  81. "cghooks add --ignore-lock",
  82. "cghooks update"
  83. ],
  84. "post-merge": "composer install",
  85. "post-install-cmd": [
  86. "cghooks remove",
  87. "cghooks add --ignore-lock",
  88. "cghooks update"
  89. ],
  90. "phpstan": "phpstan analyse --memory-limit=-1",
  91. "check-style": "vendor/bin/pint --test",
  92. "fix-style": "vendor/bin/pint",
  93. "test": "phpunit --colors"
  94. },
  95. "config": {
  96. "allow-plugins": {
  97. "composer/package-versions-deprecated": true
  98. }
  99. }
  100. }