composer.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. "friendsofphp/php-cs-fixer": "^3.0",
  12. "phpunit/phpunit": "^5.7 || ^7.5 || ^8.5.19 || ^9.5.8",
  13. "mockery/mockery": "~1.3.3 || ^1.4.2",
  14. "brainmaestro/composer-git-hooks": "^2.8",
  15. "vimeo/psalm": "^4.10",
  16. "phpstan/phpstan": "^1.0",
  17. "jetbrains/phpstorm-attributes": "^1.0"
  18. },
  19. "autoload": {
  20. "psr-4": {
  21. "Overtrue\\EasySms\\": "src"
  22. }
  23. },
  24. "autoload-dev": {
  25. "psr-4": {
  26. "Overtrue\\EasySms\\Tests\\": "tests"
  27. }
  28. },
  29. "license": "MIT",
  30. "authors": [{
  31. "name": "overtrue",
  32. "email": "i@overtrue.me"
  33. }],
  34. "extra": {
  35. "hooks": {
  36. "pre-commit": [
  37. "composer check-style",
  38. "composer psalm",
  39. "composer test"
  40. ],
  41. "pre-push": [
  42. "composer check-style"
  43. ]
  44. }
  45. },
  46. "scripts": {
  47. "post-update-cmd": [
  48. "cghooks remove",
  49. "cghooks add --ignore-lock",
  50. "cghooks update"
  51. ],
  52. "post-merge": "composer install",
  53. "post-install-cmd": [
  54. "cghooks remove",
  55. "cghooks add --ignore-lock",
  56. "cghooks update"
  57. ],
  58. "phpstan": "phpstan analyse",
  59. "check-style": "php-cs-fixer fix --using-cache=no --diff --config=.php-cs-fixer.dist.php --dry-run --allow-risky=yes --ansi",
  60. "fix-style": "php-cs-fixer fix --using-cache=no --config=.php-cs-fixer.dist.php --allow-risky=yes --ansi",
  61. "test": "phpunit --colors",
  62. "psalm": "psalm --show-info=true --no-cache",
  63. "psalm-fix": "psalm --no-cache --alter --issues=MissingReturnType,MissingParamType"
  64. }
  65. }