composer.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "name": "overtrue/qcloud-cos-client",
  3. "description": "Client of QCloud.com COS",
  4. "license": "MIT",
  5. "authors": [
  6. {
  7. "name": "overtrue",
  8. "email": "anzhengchao@gmail.com"
  9. }
  10. ],
  11. "require": {
  12. "php": ">=7.4",
  13. "psr/http-message": "^1.0||^2.0",
  14. "guzzlehttp/guzzle": "^7.2",
  15. "ext-libxml": "*",
  16. "ext-simplexml": "*",
  17. "ext-json": "*",
  18. "ext-dom": "*"
  19. },
  20. "require-dev": {
  21. "brainmaestro/composer-git-hooks": "^2.7",
  22. "friendsofphp/php-cs-fixer": "^3.4.0",
  23. "mockery/mockery": "^1.0",
  24. "phpunit/phpunit": "^9.0",
  25. "monolog/monolog": "^2.1"
  26. },
  27. "autoload": {
  28. "psr-4": {
  29. "Overtrue\\CosClient\\": "src"
  30. }
  31. },
  32. "autoload-dev": {
  33. "psr-4": {
  34. "Overtrue\\CosClient\\Tests\\": "tests"
  35. }
  36. },
  37. "extra": {
  38. "hooks": {
  39. "pre-commit": [
  40. "composer test",
  41. "composer check-style"
  42. ],
  43. "pre-push": [
  44. "composer test",
  45. "composer check-style"
  46. ]
  47. }
  48. },
  49. "scripts": {
  50. "post-update-cmd": [
  51. "cghooks update"
  52. ],
  53. "post-merge": "composer install",
  54. "post-install-cmd": [
  55. "cghooks add --ignore-lock",
  56. "cghooks update"
  57. ],
  58. "cghooks": "vendor/bin/cghooks",
  59. "check-style": "php-cs-fixer fix --using-cache=no --diff --dry-run --ansi",
  60. "fix-style": "php-cs-fixer fix --using-cache=no --ansi",
  61. "test": "vendor/bin/phpunit"
  62. },
  63. "scripts-descriptions": {
  64. "test": "Run all tests.",
  65. "check-style": "Run style checks (only dry run - no fixing!).",
  66. "fix-style": "Run style checks and fix violations."
  67. }
  68. }