composer.json 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. "name": "hyperf/translation",
  3. "type": "library",
  4. "description": "An independent translation component, forked by illuminate/translation.",
  5. "license": "MIT",
  6. "keywords": [
  7. "translation",
  8. "hyperf"
  9. ],
  10. "autoload": {
  11. "files": [
  12. "src/Functions.php"
  13. ],
  14. "psr-4": {
  15. "Hyperf\\Translation\\": "src/"
  16. }
  17. },
  18. "autoload-dev": {
  19. "psr-4": {
  20. "HyperfTest\\Translation\\": "tests"
  21. }
  22. },
  23. "require": {
  24. "php": ">=7.2",
  25. "hyperf/contract": "~2.0.0",
  26. "hyperf/utils": "~2.0.0",
  27. "psr/container": "^1.0"
  28. },
  29. "require-dev": {
  30. "friendsofphp/php-cs-fixer": "^2.14",
  31. "mockery/mockery": "^1.2"
  32. },
  33. "config": {
  34. "sort-packages": true
  35. },
  36. "scripts": {
  37. "test": "co-phpunit -c phpunit.xml --colors=always",
  38. "cs-fix": "php-cs-fixer fix $1"
  39. },
  40. "extra": {
  41. "branch-alias": {
  42. "dev-master": "2.0-dev"
  43. },
  44. "hyperf": {
  45. "config": "Hyperf\\Translation\\ConfigProvider"
  46. }
  47. }
  48. }