composer.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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": ">=8.1",
  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. "config": {
  48. "allow-plugins": {
  49. "phpstan/extension-installer": false
  50. },
  51. "platform": {
  52. "php": "8.1"
  53. }
  54. },
  55. "require-dev": {
  56. "php": ">=8.1",
  57. "ext-phar": "*",
  58. "ext-tokenizer": "*",
  59. "ext-xmlwriter": "*",
  60. "phpstan/phpstan": "^2.1",
  61. "phpstan/phpstan-deprecation-rules": "^2.0",
  62. "phpstan/phpstan-phpunit": "^2.0",
  63. "phpstan/phpstan-strict-rules": "^2.0",
  64. "phpunit/phpunit": "^10",
  65. "squizlabs/php_codesniffer": "^4.0"
  66. },
  67. "scripts": {
  68. "php-lint": "find . -type d -name 'vendor' -prune -o -name '*.php' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null",
  69. "phtml-lint": "find . -type d -name 'vendor' -prune -o -name '*.phtml' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null",
  70. "phpcs": "phpcs . -s",
  71. "phpcbf": "phpcbf . -p -s",
  72. "phpstan": "phpstan analyse --memory-limit 512M .",
  73. "phpstan-next": "phpstan analyse --memory-limit 512M -c phpstan-next.neon .",
  74. "phpunit": "phpunit --bootstrap ./tests/bootstrap.php --display-notices --display-deprecations --display-phpunit-deprecations ./tests",
  75. "translations": "cli/manipulate.translation.php --action format && cli/check.translation.php --generate-readme",
  76. "test": [
  77. "@php-lint",
  78. "@phtml-lint",
  79. "@phpunit",
  80. "@phpcs",
  81. "@phpstan"
  82. ],
  83. "fix": [
  84. "@translations",
  85. "@phpcbf"
  86. ]
  87. }
  88. }