composer.json 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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-mbstring": "*",
  29. "ext-openssl": "*",
  30. "ext-pcre": "*",
  31. "ext-pdo_sqlite": "*",
  32. "ext-session": "*",
  33. "ext-simplexml": "*",
  34. "ext-xml": "*",
  35. "ext-xmlreader": "*",
  36. "ext-zend-opcache": "*",
  37. "ext-zip": "*",
  38. "ext-zlib": "*"
  39. },
  40. "suggest": {
  41. "ext-iconv": "*",
  42. "ext-pdo_mysql": "*",
  43. "ext-pdo_pgsql": "*"
  44. },
  45. "require-dev": {
  46. "php": ">=8.0",
  47. "ext-phar": "*",
  48. "ext-tokenizer": "*",
  49. "ext-xmlwriter": "*",
  50. "phpstan/phpstan": "~1.9.17",
  51. "phpunit/phpunit": "^9",
  52. "squizlabs/php_codesniffer": "^3.7"
  53. },
  54. "scripts": {
  55. "php-lint": "find . -type d -name 'vendor' -prune -o -name '*.php' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null",
  56. "phtml-lint": "find . -type d -name 'vendor' -prune -o -name '*.phtml' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null",
  57. "phpcs": "phpcs . -s",
  58. "phpcbf": "phpcbf . -p -s",
  59. "phpstan": "phpstan analyse --memory-limit 512M .",
  60. "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)",
  61. "phpunit": "phpunit --bootstrap ./tests/bootstrap.php --verbose ./tests",
  62. "translations": "cli/manipulate.translation.php -a format",
  63. "test": [
  64. "@php-lint",
  65. "@phtml-lint",
  66. "@phpunit",
  67. "@phpcs",
  68. "@phpstan",
  69. "@phpstan-next"
  70. ],
  71. "fix": [
  72. "@translations",
  73. "@phpcbf"
  74. ]
  75. }
  76. }