-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
103 lines (103 loc) · 4.25 KB
/
composer.json
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"name": "phpolar/phpolar",
"description": "A minimal PHP framework",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Eric Fortmeyer",
"email": "e.fortmeyer01@gmail.com"
}
],
"minimum-stability": "stable",
"config": {
"sort-packages": true
},
"autoload": {
"psr-4": {
"Phpolar\\Phpolar\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Phpolar\\Phpolar\\Tests\\DataProviders\\": "tests/__data-providers__",
"Phpolar\\Phpolar\\Tests\\Mocks\\": "tests/__mocks__",
"Phpolar\\Phpolar\\Tests\\Fakes\\": "tests/__fakes__",
"Phpolar\\Phpolar\\Tests\\Stubs\\": "tests/__stubs__"
}
},
"require": {
"php": ">=8.1",
"ext-mbstring": "*",
"laminas/laminas-httphandlerrunner": "^2.9",
"php-contrib/authenticator": "^1.0",
"php-contrib/response-filter": "^1.0",
"php-contrib/validator": "^1.0",
"phpolar/core": "^3.0",
"phpolar/model-resolver": "^1.0",
"phpolar/property-injector-contract": "^1.0",
"phpolar/routable": "^2.0",
"phpolar/routable-factory": "^1.0",
"phpolar/storage-driver": "^1.0",
"psr/container": "^2.0",
"psr/http-message": "^2.0",
"psr/http-server-handler": "^1.0",
"psr/http-server-middleware": "^1.0"
},
"require-dev": {
"ext-ast": "*",
"ext-openssl": "*",
"phan/phan": "^5.3",
"php-coveralls/php-coveralls": "^2.5",
"phpmd/phpmd": "^2.13",
"phpolar/csrf-protection": "^3.1",
"phpolar/http-message-test-utils": "^0.1.0 || ^0.2.0",
"phpolar/model": "^1.2",
"phpolar/pure-php": "^2.0",
"phpstan/phpstan": "^1.8",
"phpunit/phpunit": "^11.1.3",
"picocss/pico": "^2.0.6",
"squizlabs/php_codesniffer": "^3.7"
},
"scripts": {
"analyze": "XDEBUG_MODE=off phpstan analyze src --level 9",
"analyze:strict": "phan --no-progress-bar --strict-type-checking --analyze-twice --color --output-mode=text --color-scheme=light",
"analyze:dead-code": "@analyze:strict --color-scheme=light --config-file=.phan/config_deadcode.php",
"check": [
"@lint -q",
"@analyze -q",
"@test --configuration=phpunit.dev.xml --testsuite unit",
"@semgrep",
"@smell"
],
"ci:analyze": "composer exec \"@analyze\"",
"ci:lint": "composer exec \"@lint\"",
"ci:lint-fix": "composer exec \"@lint-fix\"",
"ci:test-build": "composer exec \"@test --configuration=phpunit.ci.xml\"",
"ci:test": "XDEBUG_MODE=coverage composer exec \"@test --configuration=phpunit.ci.xml --coverage-clover=build/logs/clover.xml\"",
"ci:generate-coverage-badge": "composer exec \"php-coveralls -v\"",
"docs:generate": "composer exec \"phpdoc --setting graphs.enabled=true\"",
"lint": "phpcs",
"lint-fix": "phpcbf",
"semgrep": "semgrep --config auto ./src",
"smell": "phpmd ./src ansi design,cleancode,codesize,naming",
"start:test": [
"Composer\\Config::disableProcessTimeout",
"watch -n 30 -cx vendor/bin/phpunit --color=always --testsuite unit"
],
"test": "phpunit --color=always",
"test:acceptance": "@test --configuration=phpunit.acceptance.xml --testsuite acceptance",
"test:acceptance:report": [
"@test:acceptance --testdox-text acceptance-test-results.md",
"@acceptance-report-subheadings",
"@acceptance-report-checkbox",
"@acceptance-report-title"
],
"acceptance-report-title": "sed -i -e '1i # Acceptance Test Report\\n' acceptance-test-results.md",
"acceptance-report-subheadings": "sed -i -E 's/^(\\S)/## \\1/' acceptance-test-results.md",
"acceptance-report-checkbox": "sed -i -E 's/^ \\[/- [/' acceptance-test-results.md",
"test:benchmark": "@test --configuration=phpunit.dev.xml --testsuite benchmark",
"test:unit": "@test --configuration=phpunit.dev.xml --testsuite unit",
"test:coverage": "XDEBUG_MODE=coverage composer exec \"@test --configuration=phpunit.ci.xml --coverage-text\""
}
}