composer.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. "name": "hyperf/resource",
  3. "description": "A api resource component for hyperf.",
  4. "type": "library",
  5. "license": "MIT",
  6. "keywords": [
  7. "php",
  8. "hyperf",
  9. "resource"
  10. ],
  11. "homepage": "https://hyperf.io",
  12. "support": {
  13. "docs": "https://hyperf.wiki",
  14. "issues": "https://github.com/hyperf/hyperf/issues",
  15. "pull-request": "https://github.com/hyperf/hyperf/pulls",
  16. "source": "https://github.com/hyperf/hyperf"
  17. },
  18. "require": {
  19. "php": ">=7.2",
  20. "ext-json": "*",
  21. "hyperf/http-message": "~2.0.0",
  22. "hyperf/paginator": "~2.0.0",
  23. "hyperf/utils": "~2.0.0",
  24. "psr/container": "^1.0"
  25. },
  26. "require-dev": {
  27. "friendsofphp/php-cs-fixer": "^2.16",
  28. "hyperf/command": "~2.0.0",
  29. "hyperf/database": "~2.0.0",
  30. "hyperf/devtool": "~2.0.0",
  31. "hyperf/http-server": "~2.0.0",
  32. "mockery/mockery": "^1.0",
  33. "phpstan/phpstan": "^0.12",
  34. "phpunit/phpunit": "^7.0"
  35. },
  36. "autoload": {
  37. "psr-4": {
  38. "Hyperf\\Resource\\": "src/"
  39. }
  40. },
  41. "autoload-dev": {
  42. "psr-4": {
  43. "HyperfTest\\Resource\\": "tests/"
  44. }
  45. },
  46. "config": {
  47. "sort-packages": true
  48. },
  49. "extra": {
  50. "branch-alias": {
  51. "dev-master": "2.0-dev"
  52. },
  53. "hyperf": {
  54. "config": "Hyperf\\Resource\\ConfigProvider"
  55. }
  56. },
  57. "bin": [
  58. ],
  59. "scripts": {
  60. "cs-fix": "php-cs-fixer fix $1",
  61. "test": "phpunit --colors=always -c phpunit.xml",
  62. "analyse": "phpstan analyse --memory-limit 300M -l 0 -c phpstan.neon ./src ./tests"
  63. }
  64. }