composer.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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.0.2"
  30. },
  31. "require-dev": {
  32. "phpunit/phpunit": "^10.1",
  33. "brainmaestro/composer-git-hooks": "^2.7",
  34. "friendsofphp/php-cs-fixer": "^3.2",
  35. "nunomaduro/termwind": "^1.13",
  36. "laravel/pint": "^1.10"
  37. },
  38. "bin": ["bin/pinyin"],
  39. "extra": {
  40. "hooks": {
  41. "pre-commit": [
  42. "composer pint",
  43. "composer test"
  44. ],
  45. "pre-push": [
  46. "composer pint",
  47. "composer test"
  48. ]
  49. }
  50. },
  51. "scripts": {
  52. "post-update-cmd": [
  53. "cghooks update"
  54. ],
  55. "post-merge": "composer install",
  56. "post-install-cmd": [
  57. "cghooks remove",
  58. "cghooks add --ignore-lock"
  59. ],
  60. "cghooks": "vendor/bin/cghooks",
  61. "pint": "vendor/bin/pint ./src ./tests",
  62. "fix-style": "vendor/bin/pint ./src ./tests",
  63. "test": "vendor/bin/phpunit --colors=always",
  64. "build": "php ./bin/build",
  65. "benchmark": "php ./benchmark/run.php"
  66. },
  67. "scripts-descriptions": {
  68. "test": "Run all tests.",
  69. "fix-style": "Run style checks and fix violations."
  70. }
  71. }