composer.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. "name": "overtrue/easy-sms",
  3. "description": "The easiest way to send short message.",
  4. "type": "library",
  5. "require": {
  6. "guzzlehttp/guzzle": "^6.2 || ^7.0",
  7. "php": ">=5.6",
  8. "ext-json": "*"
  9. },
  10. "require-dev": {
  11. "phpunit/phpunit": "^5.7 || ^7.5 || ^8.5.19 || ^9.5.8",
  12. "mockery/mockery": "~1.3.3 || ^1.4.2",
  13. "brainmaestro/composer-git-hooks": "^2.8",
  14. "jetbrains/phpstorm-attributes": "^1.0"
  15. },
  16. "autoload": {
  17. "psr-4": {
  18. "Overtrue\\EasySms\\": "src"
  19. }
  20. },
  21. "autoload-dev": {
  22. "psr-4": {
  23. "Overtrue\\EasySms\\Tests\\": "tests"
  24. }
  25. },
  26. "license": "MIT",
  27. "authors": [{
  28. "name": "overtrue",
  29. "email": "i@overtrue.me"
  30. }],
  31. "extra": {
  32. "hooks": {
  33. "pre-commit": [
  34. "composer check-style",
  35. "composer psalm",
  36. "composer test"
  37. ],
  38. "pre-push": [
  39. "composer check-style"
  40. ]
  41. }
  42. },
  43. "scripts": {
  44. "post-update-cmd": [
  45. "cghooks remove",
  46. "cghooks add --ignore-lock",
  47. "cghooks update"
  48. ],
  49. "post-merge": "composer install",
  50. "post-install-cmd": [
  51. "cghooks remove",
  52. "cghooks add --ignore-lock",
  53. "cghooks update"
  54. ],
  55. "phpstan": "phpstan analyse",
  56. "check-style": "php-cs-fixer fix --using-cache=no --diff --config=.php-cs-fixer.dist.php --dry-run --allow-risky=yes --ansi",
  57. "fix-style": "php-cs-fixer fix --using-cache=no --config=.php-cs-fixer.dist.php --allow-risky=yes --ansi",
  58. "test": "phpunit --colors",
  59. "psalm": "psalm --show-info=true --no-cache",
  60. "psalm-fix": "psalm --no-cache --alter --issues=MissingReturnType,MissingParamType"
  61. }
  62. }