composer.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "name": "overtrue/pinyin",
  3. "description": "Chinese to pinyin translator.",
  4. "keywords": [
  5. "chinese",
  6. "pinyin",
  7. "cn2pinyin"
  8. ],
  9. "homepage": "https://github.com/overtrue/pinyin",
  10. "license": "MIT",
  11. "authors": [
  12. {
  13. "name": "overtrue",
  14. "homepage": "http://github.com/overtrue",
  15. "email": "anzhengchao@gmail.com"
  16. }
  17. ],
  18. "autoload": {
  19. "psr-4": {
  20. "Overtrue\\Pinyin\\": "src/"
  21. }
  22. },
  23. "autoload-dev": {
  24. "psr-4": {
  25. "Overtrue\\Pinyin\\Tests\\": "tests/"
  26. }
  27. },
  28. "require": {
  29. "php": ">=8.1"
  30. },
  31. "require-dev": {
  32. "phpunit/phpunit": "^10.5 || ^11.5 || ^12.0",
  33. "brainmaestro/composer-git-hooks": "^3.0",
  34. "nunomaduro/termwind": "^1.0 || ^2.0",
  35. "laravel/pint": "^1.10"
  36. },
  37. "bin": [
  38. "bin/pinyin"
  39. ],
  40. "extra": {
  41. "hooks": {
  42. "pre-commit": [
  43. "composer pint",
  44. "composer test"
  45. ],
  46. "pre-push": [
  47. "composer pint",
  48. "composer test"
  49. ]
  50. }
  51. },
  52. "scripts": {
  53. "post-update-cmd": [
  54. "cghooks update"
  55. ],
  56. "post-merge": "composer install",
  57. "post-install-cmd": [
  58. "cghooks remove",
  59. "cghooks add --ignore-lock"
  60. ],
  61. "cghooks": "vendor/bin/cghooks",
  62. "pint": "vendor/bin/pint ./src ./tests",
  63. "fix-style": "vendor/bin/pint ./src ./tests",
  64. "test": "vendor/bin/phpunit --colors=always",
  65. "build": "php ./bin/build",
  66. "benchmark": "php ./benchmark/run.php"
  67. },
  68. "scripts-descriptions": {
  69. "test": "Run all tests.",
  70. "fix-style": "Run style checks and fix violations."
  71. }
  72. }