composer.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "config": {
  3. "vendor-dir": "lib/composer",
  4. "optimize-autoloader": true,
  5. "sort-packages": true,
  6. "platform": {
  7. "php": "8.0"
  8. },
  9. "allow-plugins": {
  10. "bamarni/composer-bin-plugin": true
  11. }
  12. },
  13. "autoload": {
  14. "files": [
  15. "lib/public/Log/functions.php"
  16. ],
  17. "psr-4": {
  18. "": "lib/private/legacy",
  19. "OC\\": "lib/private",
  20. "OC\\Core\\": "core/",
  21. "OCP\\": "lib/public"
  22. }
  23. },
  24. "require": {
  25. "php": "^8.0",
  26. "ext-json": "*",
  27. "ext-libxml": "*",
  28. "ext-mbstring": "*",
  29. "ext-pdo": "*",
  30. "ext-simplexml": "*",
  31. "ext-xmlreader": "*",
  32. "ext-zip": "*"
  33. },
  34. "require-dev": {
  35. "bamarni/composer-bin-plugin": "^1.4"
  36. },
  37. "scripts": {
  38. "post-install-cmd": [
  39. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install",
  40. "composer dump-autoload"
  41. ],
  42. "post-update-cmd": [
  43. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi",
  44. "composer dump-autoload"
  45. ],
  46. "cs:fix": "php-cs-fixer fix",
  47. "cs:check": "php-cs-fixer fix --dry-run --diff",
  48. "lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l",
  49. "psalm": "psalm --threads=1",
  50. "psalm:update-baseline": "psalm --threads=1 --update-baseline"
  51. }
  52. }