composer.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {
  2. "name": "hyperf/validation",
  3. "type": "library",
  4. "license": "MIT",
  5. "keywords": [
  6. "validation",
  7. "hyperf"
  8. ],
  9. "description": "hyperf validation",
  10. "autoload": {
  11. "psr-4": {
  12. "Hyperf\\Validation\\": "src/"
  13. }
  14. },
  15. "autoload-dev": {
  16. "psr-4": {
  17. "HyperfTest\\Validation\\": "tests"
  18. }
  19. },
  20. "require": {
  21. "php": ">=7.2",
  22. "ext-swoole": ">=4.3",
  23. "egulias/email-validator": "^2.1",
  24. "hyperf/command": "~2.0.0",
  25. "hyperf/contract": "~2.0.0",
  26. "hyperf/database": "~2.0.0",
  27. "hyperf/devtool": "~2.0.0",
  28. "hyperf/di": "~2.0.0",
  29. "hyperf/framework": "~2.0.0",
  30. "hyperf/http-server": "~2.0.0",
  31. "hyperf/utils": "~2.0.0",
  32. "hyperf/translation": "~2.0.0",
  33. "nesbot/carbon": "^2.21",
  34. "psr/container": "^1.0",
  35. "psr/event-dispatcher": "^1.0",
  36. "psr/http-message": "^1.0"
  37. },
  38. "require-dev": {
  39. "friendsofphp/php-cs-fixer": "^2.14",
  40. "hyperf/db-connection": "~2.0.0",
  41. "hyperf/testing": "~2.0.0",
  42. "mockery/mockery": "^1.2"
  43. },
  44. "config": {
  45. "sort-packages": true
  46. },
  47. "scripts": {
  48. "test": "co-phpunit -c phpunit.xml --colors=always",
  49. "cs-fix": "php-cs-fixer fix $1"
  50. },
  51. "extra": {
  52. "branch-alias": {
  53. "dev-master": "2.0-dev"
  54. },
  55. "hyperf": {
  56. "config": "Hyperf\\Validation\\ConfigProvider"
  57. }
  58. }
  59. }