composer.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.0"
  21. },
  22. "require-dev": {
  23. "php": ">=8.0",
  24. "phpstan/phpstan": "~1.7.14",
  25. "phpunit/phpunit": "^9",
  26. "squizlabs/php_codesniffer": "^3.7"
  27. },
  28. "scripts": {
  29. "php-lint": "find . -type d -name 'vendor' -prune -o -name '*.php' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null",
  30. "phtml-lint": "find . -type d -name 'vendor' -prune -o -name '*.phtml' -print0 | xargs -0 -n1 -P4 php -l 1>/dev/null",
  31. "phpcs": "phpcs . -s",
  32. "phpcbf": "phpcbf . -p -s",
  33. "phpstan": "phpstan analyse --memory-limit 512M .",
  34. "phpunit": "phpunit --bootstrap ./tests/bootstrap.php --verbose ./tests",
  35. "translations": "cli/manipulate.translation.php -a format",
  36. "test": [
  37. "@php-lint",
  38. "@phtml-lint",
  39. "@phpunit",
  40. "@phpcs",
  41. "@phpstan"
  42. ],
  43. "fix": [
  44. "@translations",
  45. "@phpcbf"
  46. ]
  47. }
  48. }