2016-01-10 03:59:30 -05:00
|
|
|
{
|
2021-08-19 04:48:44 -04:00
|
|
|
"config": {
|
|
|
|
|
"vendor-dir": "lib/composer",
|
|
|
|
|
"optimize-autoloader": true,
|
|
|
|
|
"sort-packages": true,
|
|
|
|
|
"platform": {
|
2025-10-21 07:50:28 -04:00
|
|
|
"php": "8.2"
|
2021-12-27 03:57:29 -05:00
|
|
|
},
|
|
|
|
|
"allow-plugins": {
|
|
|
|
|
"bamarni/composer-bin-plugin": true
|
2021-08-19 04:48:44 -04:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"autoload": {
|
2025-10-13 11:41:45 -04:00
|
|
|
"exclude-from-classmap": [
|
|
|
|
|
"**/bamarni/composer-bin-plugin/**"
|
|
|
|
|
],
|
2021-04-16 03:22:05 -04:00
|
|
|
"files": [
|
|
|
|
|
"lib/public/Log/functions.php"
|
|
|
|
|
],
|
2021-08-19 04:48:44 -04:00
|
|
|
"psr-4": {
|
2020-04-01 14:44:29 -04:00
|
|
|
"": "lib/private/legacy",
|
2021-08-19 04:48:44 -04:00
|
|
|
"OC\\": "lib/private",
|
|
|
|
|
"OC\\Core\\": "core/",
|
2024-11-07 13:47:04 -05:00
|
|
|
"OCP\\": "lib/public",
|
|
|
|
|
"NCU\\": "lib/unstable"
|
2021-08-19 04:48:44 -04:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"require": {
|
2025-10-21 07:50:28 -04:00
|
|
|
"php": "^8.2",
|
2025-10-13 11:41:45 -04:00
|
|
|
"ext-apcu": "*",
|
2023-10-24 03:17:25 -04:00
|
|
|
"ext-ctype": "*",
|
|
|
|
|
"ext-curl": "*",
|
|
|
|
|
"ext-dom": "*",
|
|
|
|
|
"ext-fileinfo": "*",
|
|
|
|
|
"ext-gd": "*",
|
2021-08-19 04:48:44 -04:00
|
|
|
"ext-json": "*",
|
|
|
|
|
"ext-libxml": "*",
|
|
|
|
|
"ext-mbstring": "*",
|
2023-02-20 08:48:06 -05:00
|
|
|
"ext-openssl": "*",
|
2021-08-19 04:48:44 -04:00
|
|
|
"ext-pdo": "*",
|
2023-10-24 03:17:25 -04:00
|
|
|
"ext-posix": "*",
|
|
|
|
|
"ext-session": "*",
|
2021-08-19 04:48:44 -04:00
|
|
|
"ext-simplexml": "*",
|
2023-10-24 03:17:25 -04:00
|
|
|
"ext-xml": "*",
|
2021-08-19 04:48:44 -04:00
|
|
|
"ext-xmlreader": "*",
|
2023-10-24 03:17:25 -04:00
|
|
|
"ext-xmlwriter": "*",
|
|
|
|
|
"ext-zip": "*",
|
|
|
|
|
"ext-zlib": "*"
|
2021-08-19 04:48:44 -04:00
|
|
|
},
|
|
|
|
|
"require-dev": {
|
|
|
|
|
"bamarni/composer-bin-plugin": "^1.4"
|
|
|
|
|
},
|
|
|
|
|
"scripts": {
|
|
|
|
|
"post-install-cmd": [
|
|
|
|
|
"[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install",
|
2023-12-06 10:37:46 -05:00
|
|
|
"composer dump-autoload --no-dev"
|
2021-08-19 04:48:44 -04:00
|
|
|
],
|
|
|
|
|
"post-update-cmd": [
|
|
|
|
|
"[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi",
|
2023-12-06 10:37:46 -05:00
|
|
|
"composer dump-autoload --no-dev"
|
2021-08-19 04:48:44 -04:00
|
|
|
],
|
|
|
|
|
"cs:fix": "php-cs-fixer fix",
|
|
|
|
|
"cs:check": "php-cs-fixer fix --dry-run --diff",
|
2026-01-15 06:30:38 -05:00
|
|
|
"lint": [
|
|
|
|
|
"@lint-8.2-or-earlier",
|
|
|
|
|
"@lint-8.3-or-later"
|
|
|
|
|
],
|
|
|
|
|
"lint-8.2-or-earlier": "[ $(php -r \"echo PHP_VERSION_ID;\") -ge 80300 ] || find . -type f -name '*.php' -not -path './3rdparty/*' -not -path '*/composer/*' -not -path '*/stubs/*' -not -path '*/vendor-bin/*' -not -path '*/vendor/*' -print0 | xargs -0 -n1 -P$(nproc) php -l",
|
|
|
|
|
"lint-8.3-or-later": "[ $(php -r \"echo PHP_VERSION_ID;\") -lt 80300 ] || find . -type f -name '*.php' -not -path './3rdparty/*' -not -path '*/composer/*' -not -path '*/stubs/*' -not -path '*/vendor-bin/*' -not -path '*/vendor/*' -print0 | xargs -0 -n200 -P$(nproc) php -l",
|
2023-07-03 05:26:30 -04:00
|
|
|
"psalm": "psalm --no-cache --threads=$(nproc)",
|
2024-09-30 17:53:53 -04:00
|
|
|
"psalm:ocp": "psalm --no-cache --threads=$(nproc) -c psalm-ocp.xml",
|
2024-11-12 05:39:56 -05:00
|
|
|
"psalm:ncu": "psalm --no-cache --threads=$(nproc) -c psalm-ncu.xml",
|
2025-11-19 04:31:23 -05:00
|
|
|
"psalm:strict": "psalm --no-cache --threads=$(nproc) -c psalm-strict.xml",
|
2024-09-30 18:09:15 -04:00
|
|
|
"psalm:security": "psalm --no-cache --threads=$(nproc) --taint-analysis --use-baseline=build/psalm-baseline-security.xml",
|
2026-01-07 08:21:48 -05:00
|
|
|
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType",
|
2023-09-28 07:20:49 -04:00
|
|
|
"psalm:update-baseline": "psalm --no-cache --threads=$(nproc) --update-baseline",
|
2023-10-13 04:44:40 -04:00
|
|
|
"serve": [
|
|
|
|
|
"Composer\\Config::disableProcessTimeout",
|
2026-01-26 04:41:50 -05:00
|
|
|
"php -f occ config:system:set 'overwrite.cli.url' --type string --value \"http://${NEXTCLOUD_HOST:=localhost}:${NEXTCLOUD_PORT:=8080}\"",
|
2023-10-13 04:44:40 -04:00
|
|
|
"PHP_CLI_SERVER_WORKERS=${NEXTCLOUD_WORKERS:=4} php -S ${NEXTCLOUD_HOST:=localhost}:${NEXTCLOUD_PORT:=8080} -t ./"
|
|
|
|
|
],
|
2025-12-12 12:37:42 -05:00
|
|
|
"test": [
|
|
|
|
|
"Composer\\Config::disableProcessTimeout",
|
|
|
|
|
"phpunit --fail-on-warning --fail-on-risky --display-warnings --display-deprecations --display-phpunit-deprecations --colors=always --configuration tests/phpunit-autotest.xml"
|
|
|
|
|
],
|
2025-10-20 18:00:15 -04:00
|
|
|
"test:db": "@composer run test -- --group DB --group SLOWDB",
|
2025-09-04 11:47:40 -04:00
|
|
|
"test:files_external": "phpunit --fail-on-warning --fail-on-risky --display-warnings --display-deprecations --display-phpunit-deprecations --colors=always --configuration tests/phpunit-autotest-external.xml",
|
2025-03-24 11:10:46 -04:00
|
|
|
"rector": "rector --config=build/rector.php && composer cs:fix",
|
2025-11-19 04:31:40 -05:00
|
|
|
"rector:strict": "rector --config=build/rector-strict.php && composer cs:fix",
|
2025-03-24 11:10:46 -04:00
|
|
|
"openapi": "./build/openapi-checker.sh"
|
2024-02-01 10:36:07 -05:00
|
|
|
},
|
|
|
|
|
"extra": {
|
|
|
|
|
"bamarni-bin": {
|
|
|
|
|
"bin-links": true,
|
|
|
|
|
"forward-command": false
|
|
|
|
|
}
|
2021-08-19 04:48:44 -04:00
|
|
|
}
|
2016-01-10 03:59:30 -05:00
|
|
|
}
|