composer.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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-ctype": "*",
  27. "ext-curl": "*",
  28. "ext-dom": "*",
  29. "ext-fileinfo": "*",
  30. "ext-gd": "*",
  31. "ext-json": "*",
  32. "ext-libxml": "*",
  33. "ext-mbstring": "*",
  34. "ext-openssl": "*",
  35. "ext-pdo": "*",
  36. "ext-posix": "*",
  37. "ext-session": "*",
  38. "ext-simplexml": "*",
  39. "ext-xml": "*",
  40. "ext-xmlreader": "*",
  41. "ext-xmlwriter": "*",
  42. "ext-zip": "*",
  43. "ext-zlib": "*"
  44. },
  45. "require-dev": {
  46. "bamarni/composer-bin-plugin": "^1.4"
  47. },
  48. "scripts": {
  49. "post-install-cmd": [
  50. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install",
  51. "composer dump-autoload"
  52. ],
  53. "post-update-cmd": [
  54. "[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi",
  55. "composer dump-autoload"
  56. ],
  57. "cs:fix": "php-cs-fixer fix",
  58. "cs:check": "php-cs-fixer fix --dry-run --diff",
  59. "lint": "find . -name \\*.php -not -path './lib/composer/*' -not -path './build/stubs/*' -print0 | xargs -0 -n1 php -l",
  60. "psalm": "psalm --no-cache --threads=$(nproc)",
  61. "psalm:ci": "psalm --no-cache --threads=1",
  62. "psalm:update-baseline": "psalm --no-cache --threads=$(nproc) --update-baseline",
  63. "test": "phpunit --configuration tests/phpunit-autotest.xml",
  64. "test:db": "@composer run test -- --group DB,SLOWDB",
  65. "test:files_external": "phpunit --configuration tests/phpunit-autotest-external.xml"
  66. }
  67. }