composer.json 1.4 KB

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