composer.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "name": "overtrue/wechat",
  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": ">=7.4",
  20. "ext-fileinfo": "*",
  21. "ext-openssl": "*",
  22. "ext-simplexml": "*",
  23. "easywechat-composer/easywechat-composer": "^1.1",
  24. "guzzlehttp/guzzle": "^6.2 || ^7.0",
  25. "monolog/monolog": "^1.22 || ^2.0 || ^3.0",
  26. "overtrue/socialite": "^3.2 || ^4.0",
  27. "pimple/pimple": "^3.0",
  28. "psr/simple-cache": "^1.0||^2.0||^3.0",
  29. "symfony/cache": "^3.3 || ^4.3 || ^5.0 || ^6.0",
  30. "symfony/event-dispatcher": "^4.3 || ^5.0 || ^6.0",
  31. "symfony/http-foundation": "^2.7 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
  32. "ext-libxml": "*"
  33. },
  34. "require-dev": {
  35. "friendsofphp/php-cs-fixer": "^3.5.0",
  36. "brainmaestro/composer-git-hooks": "^2.7",
  37. "mikey179/vfsstream": "^1.6",
  38. "mockery/mockery": "^1.2.3",
  39. "phpstan/phpstan": "^0.12.0",
  40. "phpunit/phpunit": "^9.3",
  41. "dms/phpunit-arraysubset-asserts": "^0.2.0"
  42. },
  43. "autoload": {
  44. "psr-4": {
  45. "EasyWeChat\\": "src/"
  46. },
  47. "files": [
  48. "src/Kernel/Support/Helpers.php",
  49. "src/Kernel/Helpers.php"
  50. ]
  51. },
  52. "autoload-dev": {
  53. "psr-4": {
  54. "EasyWeChat\\Tests\\": "tests/"
  55. }
  56. },
  57. "extra": {
  58. "hooks": {
  59. "pre-commit": [
  60. "composer test",
  61. "composer fix-style"
  62. ],
  63. "pre-push": [
  64. "composer test",
  65. "composer fix-style"
  66. ]
  67. }
  68. },
  69. "scripts": {
  70. "post-update-cmd": [
  71. "cghooks update"
  72. ],
  73. "post-merge": "composer install",
  74. "post-install-cmd": [
  75. "cghooks add --ignore-lock",
  76. "cghooks update"
  77. ],
  78. "phpstan": "vendor/bin/phpstan analyse",
  79. "check-style": "vendor/bin/php-cs-fixer fix --using-cache=no --diff --config=.php-cs-fixer.dist.php --dry-run --ansi",
  80. "fix-style": "vendor/bin/php-cs-fixer fix --using-cache=no --config=.php-cs-fixer.dist.php --ansi",
  81. "test": "vendor/bin/phpunit --colors=always --testdox"
  82. },
  83. "config": {
  84. "allow-plugins": {
  85. "easywechat-composer/easywechat-composer": true
  86. }
  87. }
  88. }