Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
69 lines (69 loc) · 2.88 KB
/
Copy pathcomposer.json
File metadata and controls
69 lines (69 loc) · 2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"name": "dites.cat/pccd",
"description": "Paremiologia catalana comparada digital",
"license": "AGPL-3.0-or-later",
"type": "project",
"authors": [
{
"name": "Pere Orga Esteve",
"email": "pere@orga.cat",
"homepage": "https://orga.cat",
"role": "Developer"
}
],
"homepage": "https://pccd.dites.cat",
"require": {
"php": ">=8.4",
"ext-mbstring": "*"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.57",
"pereorga/phpstan-rules": "^1.5",
"php-cs-fixer/shim": "^3.95",
"phpstan/phpstan": "^2.3",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-strict-rules": "^2.1",
"phpunit/phpunit": "^13.4",
"psalm/phar": "^7.6",
"slevomat/coding-standard": "^8.31",
"squizlabs/php_codesniffer": "^4.0"
},
"suggest": {
"ext-apcu": "Optional: used for caching SQL queries, and for the search stats. Strongly encouraged in the web server",
"ext-gd": "Required in the web server for generating OG images, and optionally by apc.php in admin pages",
"ext-pdo-mysql": "Required in the web server for connecting to the database",
"ext-session": "Required in the web server for the admin page"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true
},
"sort-packages": true
},
"scripts": {
"post-install-cmd": [
"@update-third-party"
],
"post-update-cmd": [
"@update-third-party"
],
"composer-normalize": "./composer.phar normalize --no-interaction --ansi",
"composer-normalize-lint": "./composer.phar normalize --dry-run --no-interaction --ansi",
"php-cs-fixer": "PHP_CS_FIXER_FUTURE_MODE=1 vendor/bin/php-cs-fixer.phar fix --diff --no-interaction --ansi --show-progress=none",
"php-cs-fixer-lint": "PHP_CS_FIXER_FUTURE_MODE=1 vendor/bin/php-cs-fixer.phar fix --dry-run --verbose --stop-on-violation --no-interaction --ansi --show-progress=none",
"php-l": "php -l .*.php docroot/*.php docroot/**/*.php scripts/**/*.php src/*.php src/**/*.php tests/**/*.php",
"phpcbf": "vendor/bin/phpcbf --standard=phpcs.xml .",
"phpcs": "vendor/bin/phpcs -s --standard=phpcs.xml .",
"phpstan": "vendor/bin/phpstan analyze --memory-limit=256M --no-progress",
"phpunit": "vendor/bin/phpunit --compact --fail-on-deprecation --fail-on-phpunit-deprecation --fail-on-warning",
"psalm": "vendor/bin/psalm.phar --no-progress",
"update-third-party": [
"curl --fail --silent --show-error --location https://raw.githubusercontent.com/krakjoe/apcu/master/apc.php --output src/third_party/apc.php",
"curl --fail --silent --show-error --location https://raw.githubusercontent.com/amnuts/opcache-gui/master/index.php --output src/third_party/opcache-gui.php",
"git apply patches/opcache-gui.patch"
]
}
}