composer.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. "name": "freshrss.org/freshrss",
  3. "description": "A free, self-hostable aggregator",
  4. "type": "project",
  5. "homepage": "https://freshrss.org/",
  6. "license": "AGPL-3.0",
  7. "support": {
  8. "docs": "https://freshrss.github.io/FreshRSS/",
  9. "issues": "https://github.com/FreshRSS/FreshRSS/issues",
  10. "source": "https://github.com/FreshRSS/FreshRSS/"
  11. },
  12. "keywords": [
  13. "news",
  14. "aggregator",
  15. "RSS",
  16. "Atom",
  17. "WebSub"
  18. ],
  19. "require": {
  20. "php": ">=7.2",
  21. "ext-ctype": "*",
  22. "ext-curl": "*",
  23. "ext-dom": "*",
  24. "ext-fileinfo": "*",
  25. "ext-gmp": "*",
  26. "ext-intl": "*",
  27. "ext-json": "*",
  28. "ext-libxml": "*",
  29. "ext-mbstring": "*",
  30. "ext-openssl": "*",
  31. "ext-pcre": "*",
  32. "ext-pdo": "*",
  33. "ext-pdo_sqlite": "*",
  34. "ext-session": "*",
  35. "ext-simplexml": "*",
  36. "ext-xml": "*",
  37. "ext-xmlreader": "*",
  38. "ext-zend-opcache": "*",
  39. "ext-zip": "*",
  40. "ext-zlib": "*"
  41. },
  42. "suggest": {
  43. "ext-iconv": "*",
  44. "ext-pdo_mysql": "*",
  45. "ext-pdo_pgsql": "*"
  46. },
  47. "require-dev": {
  48. "php": ">=8.0",
  49. "ext-phar": "*",
  50. "ext-tokenizer": "*",
  51. "ext-xmlwriter": "*",
  52. "phpstan/phpstan": "~1.9.17",
  53. "phpunit/phpunit": "^9",
  54. "squizlabs/php_codesniffer": "^3.7"
  55. },
  56. "scripts": {
  57. "php-lint": "find . -type d -name 'vendor' -prune -o -name '*.php' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null",
  58. "phtml-lint": "find . -type d -name 'vendor' -prune -o -name '*.phtml' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null",
  59. "phpcs": "phpcs . -s",
  60. "phpcbf": "phpcbf . -p -s",
  61. "phpstan": "phpstan analyse --memory-limit 512M .",
  62. "phpstan-next": "phpstan analyse --level 6 --memory-limit 512M $(find . -type d -name 'vendor' -prune -o -name '*.php' -o -name '*.phtml' | grep -Fxvf ./tests/phpstan-next.txt | sort | paste -s)",
  63. "phpunit": "phpunit --bootstrap ./tests/bootstrap.php --verbose ./tests",
  64. "translations": "cli/manipulate.translation.php -a format",
  65. "test": [
  66. "@php-lint",
  67. "@phtml-lint",
  68. "@phpunit",
  69. "@phpcs",
  70. "@phpstan",
  71. "@phpstan-next"
  72. ],
  73. "fix": [
  74. "@translations",
  75. "@phpcbf"
  76. ]
  77. }
  78. }