Skip to content

Commit 14e2047

Browse files
committed
Update composer.json with new configuration
1 parent b40c0f2 commit 14e2047

2 files changed

Lines changed: 2825 additions & 870 deletions

File tree

composer.json

Lines changed: 42 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,62 @@
1717
"platform": {
1818
"php": "7.4.33"
1919
},
20-
"vendor-dir": "lib/vendor"
20+
"vendor-dir": "lib/vendor",
21+
"sort-packages": true
2122
},
22-
2323
"require": {
24-
"sinergi/browser-detector": "^6.1",
25-
"intervention/image": "^2.5",
26-
"ircmaxell/random-lib": "^1.2",
27-
"egulias/email-validator": "^2.1",
28-
"voku/anti-xss": "^4.1",
24+
"php": ">=7.4",
25+
"catfan/medoo": "^2.1",
2926
"defuse/php-encryption": "^2.2",
27+
"egulias/email-validator": "^2.1",
3028
"filp/whoops": "^2.9",
31-
"psr/log": "^1.1",
32-
"melbahja/seo": "^2.0",
33-
"laminas/laminas-escaper": "^2.12",
29+
"intervention/image": "^2.5",
30+
"ircmaxell/random-lib": "^1.2",
3431
"laminas/laminas-crypt": "^3.3",
32+
"laminas/laminas-escaper": "^2.12",
3533
"laminas/laminas-feed": "^2.17",
36-
"catfan/medoo": "^2.1",
34+
"melbahja/seo": "^2.0",
35+
"psr/log": "^1.1",
36+
"sinergi/browser-detector": "^6.1",
3737
"symfony/mailer": "^5.4",
38-
"symfony/mime": "^5.4",
39-
"vlucas/phpdotenv": "^5.6"
38+
"vlucas/phpdotenv": "^5.6",
39+
"voku/anti-xss": "^4.1"
4040
},
4141
"require-dev": {
42+
"friendsofphp/php-cs-fixer": "^3.0",
43+
"phpmetrics/phpmetrics": "^2.9",
44+
"phpstan/phpstan": "^1.10",
4245
"phpunit/phpunit": "^9.5",
43-
"phpstan/phpstan": "^2.0"
46+
"squizlabs/php_codesniffer": "^3.7"
4447
},
4548
"minimum-stability": "stable",
4649
"prefer-stable": true,
4750
"autoload": {
4851
"classmap": ["lib/"]
52+
},
53+
"scripts": {
54+
"metrics": "php bin/phpmetrics",
55+
"phpstan": "phpstan analyse lib --level 0 --memory-limit=1G",
56+
"phpstan:strict": "phpstan analyse lib --level 1 --memory-limit=1G",
57+
"phpcs": "phpcs --standard=phpcs.xml lib/",
58+
"phpcbf": "phpcbf --standard=phpcs.xml lib/",
59+
"csfix": "php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff",
60+
"csfix:apply": "php-cs-fixer fix --config=.php-cs-fixer.dist.php",
61+
"test": "phpunit --configuration phpunit.xml",
62+
"test:coverage": "phpunit --configuration phpunit.xml --coverage-html build/coverage",
63+
"analyse": [
64+
"@phpstan",
65+
"@phpcs"
66+
],
67+
"quality": [
68+
"@phpstan",
69+
"@phpcs",
70+
"@metrics"
71+
],
72+
"build": [
73+
"@phpstan:strict",
74+
"@phpcs",
75+
"@test"
76+
]
4977
}
5078
}

0 commit comments

Comments
 (0)