-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomposer.json
executable file
·89 lines (89 loc) · 2 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
{
"name": "inspirum/arrayable",
"description": "PHP arrayable interface for handling casting to an array",
"keywords": [
"arrayable",
"object-to-array"
],
"homepage": "https://github.com/inspirum/arrayable-php",
"license": "MIT",
"type": "library",
"authors": [
{
"name": "Tomáš Novotný",
"email": "tomas.novotny@inspirum.cz",
"role": "Developer"
}
],
"require": {
"php": "^8.1",
"ext-json": "*"
},
"require-dev": {
"inspirum/coding-standard": "^1.6",
"phpstan/phpstan": "^2.0",
"phpunit/phpunit": "^10.5 || ^11.0",
"shipmonk/composer-dependency-analyser": "^1.8",
"squizlabs/php_codesniffer": "^3.11"
},
"autoload": {
"psr-4": {
"Inspirum\\Arrayable\\": "src"
},
"classmap": [
"core"
],
"files": [
"core/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Inspirum\\Arrayable\\Tests\\": "tests"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"test": [
"@style:phpcs",
"@test:unit",
"@style:phpstan",
"@check:dependency"
],
"test:test": [
"@test:unit"
],
"test:unit": [
"@phpunit --testsuite=Unit"
],
"test:coverage": [
"@phpunit --coverage-text --coverage-html=var/phpunit/coverage"
],
"style:phpcs": [
"@phpcs"
],
"style:phpstan": [
"@phpstan"
],
"style:check": [
"@style:phpcs",
"@style:phpstan"
],
"style:fix": [
"@phpcbf src tests"
],
"check:dependency": [
"@composer-dependency-analyser"
],
"phpunit": "./vendor/bin/phpunit",
"phpcs": "./vendor/bin/phpcs -p -s --extensions=php --colors --report-width=140 || true",
"phpstan": "./vendor/bin/phpstan analyse -c phpstan.neon",
"phpcbf": "./vendor/bin/phpcbf -p --extensions=php",
"composer-dependency-analyser": "./vendor/bin/composer-dependency-analyser"
}
}