composer.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "name": "webonyx/graphql-php",
  3. "description": "A PHP port of GraphQL reference implementation",
  4. "type": "library",
  5. "license": "MIT",
  6. "homepage": "https://github.com/webonyx/graphql-php",
  7. "keywords": [
  8. "graphql",
  9. "API"
  10. ],
  11. "require": {
  12. "php": ">=5.6",
  13. "ext-mbstring": "*"
  14. },
  15. "require-dev": {
  16. "phpunit/phpunit": "^4.8",
  17. "psr/http-message": "^1.0",
  18. "react/promise": "2.*"
  19. },
  20. "config": {
  21. "bin-dir": "bin",
  22. "preferred-install": "dist",
  23. "sort-packages": true
  24. },
  25. "autoload": {
  26. "psr-4": {
  27. "GraphQL\\": "src/"
  28. }
  29. },
  30. "autoload-dev": {
  31. "psr-4": {
  32. "GraphQL\\Tests\\": "tests/",
  33. "GraphQL\\Benchmarks\\": "benchmarks/",
  34. "GraphQL\\Examples\\Blog\\": "examples/01-blog/Blog/"
  35. }
  36. },
  37. "scripts": {
  38. "static-analysis": [
  39. "rm phpstan.phar || true",
  40. "@composer req --ansi --no-interaction --dev phpstan/phpstan-shim",
  41. "cp -f vendor/phpstan/phpstan-shim/phpstan.phar .",
  42. "@composer rem --ansi --dev phpstan/phpstan-shim",
  43. "@php phpstan.phar analyse --ansi -l 1 -c phpstan.neon src"
  44. ]
  45. },
  46. "suggest": {
  47. "react/promise": "To leverage async resolving on React PHP platform",
  48. "psr/http-message": "To use standard GraphQL server"
  49. }
  50. }