composer.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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.10.14",
  53. "phpstan/phpstan-phpunit": "^1.3",
  54. "phpunit/phpunit": "^9",
  55. "squizlabs/php_codesniffer": "^3.7"
  56. },
  57. "scripts": {
  58. "php-lint": "find . -type d -name 'vendor' -prune -o -name '*.php' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null",
  59. "phtml-lint": "find . -type d -name 'vendor' -prune -o -name '*.phtml' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null",
  60. "phpcs": "phpcs . -s",
  61. "phpcbf": "phpcbf . -p -s",
  62. "phpstan": "phpstan analyse --memory-limit 512M .",
  63. "phpstan-next": "phpstan analyse --level 7 --memory-limit 512M $(find . -type d -name 'vendor' -prune -o -name '*.php' -o -name '*.phtml' | grep -Fxvf ./tests/phpstan-next.txt | sort | paste -s)",
  64. "phpunit": "phpunit --bootstrap ./tests/bootstrap.php --verbose ./tests",
  65. "translations": "cli/manipulate.translation.php -a format",
  66. "test": [
  67. "@php-lint",
  68. "@phtml-lint",
  69. "@phpunit",
  70. "@phpcs",
  71. "@phpstan",
  72. "@phpstan-next"
  73. ],
  74. "fix": [
  75. "@translations",
  76. "@phpcbf"
  77. ]
  78. },
  79. "config": {
  80. "allow-plugins": {
  81. "phpstan/extension-installer": false
  82. }
  83. }
  84. }