composer.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. "name": "elasticsearch/elasticsearch",
  3. "description": "PHP Client for Elasticsearch",
  4. "keywords": ["search","client", "elasticsearch"],
  5. "type": "library",
  6. "license": [
  7. "Apache-2.0",
  8. "LGPL-2.1-only"
  9. ],
  10. "authors": [
  11. {
  12. "name": "Zachary Tong"
  13. },
  14. {
  15. "name": "Enrico Zimuel"
  16. }
  17. ],
  18. "require": {
  19. "php": "^7.3 || ^8.0",
  20. "ext-json": ">=1.3.7",
  21. "ezimuel/ringphp": "^1.1.2",
  22. "psr/log": "^1|^2|^3"
  23. },
  24. "require-dev": {
  25. "ext-yaml": "*",
  26. "ext-zip": "*",
  27. "mockery/mockery": "^1.2",
  28. "phpstan/phpstan": "^0.12",
  29. "phpunit/phpunit": "^9.3",
  30. "squizlabs/php_codesniffer": "^3.4",
  31. "symfony/finder": "~4.0"
  32. },
  33. "suggest": {
  34. "ext-curl": "*",
  35. "monolog/monolog": "Allows for client-level logging and tracing"
  36. },
  37. "autoload": {
  38. "files": [
  39. "src/autoload.php"
  40. ],
  41. "psr-4": {
  42. "Elasticsearch\\": "src/Elasticsearch/"
  43. }
  44. },
  45. "autoload-dev": {
  46. "psr-4": {
  47. "Elasticsearch\\Tests\\": "tests/Elasticsearch/Tests/",
  48. "Elasticsearch\\IntegrationTests\\": "tests/Elasticsearch/IntegrationTests/",
  49. "Elasticsearch\\Util\\": "util/"
  50. }
  51. },
  52. "config": {
  53. "sort-packages": true
  54. },
  55. "scripts": {
  56. "phpcs": [
  57. "phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp src --ignore=src/Elasticsearch/Endpoints",
  58. "phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 --tab-width=4 -sp tests --ignore=tests/Elasticsearch/Tests/Yaml"
  59. ],
  60. "phpstan": [
  61. "phpstan analyse src --level 2 --no-progress"
  62. ]
  63. }
  64. }