composer.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "name": "team-reflex/discord-php",
  3. "description": "An unofficial API to interact with the voice and text service Discord.",
  4. "license": "MIT",
  5. "authors": [
  6. {
  7. "name": "David Cole",
  8. "email": "david.cole1340@gmail.com"
  9. }
  10. ],
  11. "require": {
  12. "php": "^7.4|^8.0",
  13. "nesbot/carbon": "^2.38",
  14. "ratchet/pawl": "^0.4.1",
  15. "react/datagram": "1.5.*",
  16. "symfony/options-resolver": "^5.1.3 || ^6.0",
  17. "trafficcophp/bytebuffer": "^0.3",
  18. "monolog/monolog": "^2.1 || ^3.0",
  19. "react/partial": "^3.0",
  20. "mollie/polyfill-libsodium": "^1.1",
  21. "react/http": "^1.1",
  22. "ext-json": "*",
  23. "ext-zlib": "*",
  24. "discord-php/http": "^9.0.12",
  25. "react/child-process": "^0.6.2",
  26. "discord/interactions": "^2.2"
  27. },
  28. "require-dev": {
  29. "symfony/var-dumper": "*",
  30. "friendsofphp/php-cs-fixer": "^3",
  31. "phpunit/phpunit": "^9.4",
  32. "davidcole1340/reactsh": "dev-master"
  33. },
  34. "autoload": {
  35. "files": [
  36. "src/Discord/functions.php"
  37. ],
  38. "psr-4": {
  39. "Discord\\": "src/Discord"
  40. }
  41. },
  42. "suggest": {
  43. "ext-uv": "For a faster, and more performant loop. Preferred.",
  44. "ext-libev": "For a faster, and more performant loop.",
  45. "ext-event": "For a faster, and more performant loop.",
  46. "ext-mbstring": "For accurate calculations of string length when handling non-english characters.",
  47. "ext-gmp": "For Permissions and 64 bit calculations on x86 (32 bit) PHP.",
  48. "clue/zlib-react": "For gateway message transport compression with zlib-stream."
  49. },
  50. "scripts": {
  51. "cs": ["./vendor/bin/php-cs-fixer fix"],
  52. "unit": ["./vendor/bin/phpunit --testdox"],
  53. "coverage": ["XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-html coverage --testdox"]
  54. }
  55. }