composer.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "name": "meilisearch/meilisearch-php",
  3. "description": "PHP wrapper for the MeiliSearch API",
  4. "keywords": ["meilisearch", "instant", "search", "api", "client", "php"],
  5. "type": "library",
  6. "license": "MIT",
  7. "authors": [
  8. {
  9. "name": "Clementine Urquizar",
  10. "email": "clementine@meilisearch.com"
  11. }
  12. ],
  13. "minimum-stability": "stable",
  14. "require": {
  15. "php": ">=7.2",
  16. "ext-json": "*",
  17. "php-http/discovery": "^1.7",
  18. "php-http/httplug": "^2.1",
  19. "php-http/client-common": "^2.0"
  20. },
  21. "autoload": {
  22. "psr-4": {
  23. "MeiliSearch\\": "src/"
  24. }
  25. },
  26. "autoload-dev": {
  27. "psr-4": {
  28. "Tests\\": "tests/"
  29. }
  30. },
  31. "suggest": {
  32. "guzzlehttp/guzzle": "Use Guzzle ^7 as HTTP client",
  33. "http-interop/http-factory-guzzle": "Factory for guzzlehttp/guzzle"
  34. },
  35. "require-dev": {
  36. "phpunit/phpunit": "^8.5 || ^9.0",
  37. "friendsofphp/php-cs-fixer": "^2.16",
  38. "guzzlehttp/guzzle": "^7.1",
  39. "http-interop/http-factory-guzzle": "^1.0"
  40. },
  41. "scripts": {
  42. "lint": [
  43. "./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --config=./.php_cs.dist --diff --show-progress=estimating --dry-run --using-cache=yes --allow-risky=yes"
  44. ],
  45. "lint:fix": [
  46. "./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --config=./.php_cs.dist --diff --show-progress=estimating --using-cache=no --allow-risky=yes"
  47. ],
  48. "test": [
  49. "sh scripts/tests.sh"
  50. ]
  51. }
  52. }