Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
131 lines (131 loc) · 4.62 KB
/
Copy pathcomposer.json
File metadata and controls
131 lines (131 loc) · 4.62 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name": "woodev/plugin-framework",
"description": "Woodev Plugin Framework — scaffold for developing WooCommerce plugins",
"type": "library",
"license": "GPL-3.0-or-later",
"authors": [
{
"name": "Woodev",
"homepage": "https://github.com/kalbac/woodev-plugin-framework"
}
],
"require": {
"php": ">=7.4 <9.0"
},
"require-dev": {
"brain/monkey": "^2.6",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"mockery/mockery": "^1.6",
"php-stubs/woocommerce-stubs": "^10.5 || ^11.0",
"phpcompatibility/php-compatibility": "^9.3",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpstan/phpstan": "^1.12",
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3.9",
"szepeviktor/phpstan-wordpress": "^1.3",
"wp-coding-standards/wpcs": "^3.1",
"wp-phpunit/wp-phpunit": "^6.9 || ^7.0",
"yoast/phpunit-polyfills": "^2.0 || ^4.0"
},
"autoload": {
"classmap": [
"woodev/account",
"woodev/admin",
"woodev/api",
"woodev/box-packer",
"woodev/box-packer/interfaces",
"woodev/compatibility",
"woodev/competitor",
"woodev/error-reporting",
"woodev/handlers",
"woodev/http",
"woodev/licensing",
"woodev/payment-gateway",
"woodev/licensing/updater",
"woodev/rest-api",
"woodev/settings-api",
"woodev/settings-page",
"woodev/setup",
"woodev/shipping-method",
"woodev/utilities",
"woodev/bootstrap.php",
"woodev/loader.php",
"woodev/class-framework-autoloader.php",
"woodev/class-framework-plugin-loader-definition.php",
"woodev/class-framework-resolver.php",
"woodev/class-plugin.php",
"woodev/class-woocommerce-plugin.php",
"woodev/class-woocommerce-helper.php",
"woodev/class-lifecycle.php",
"woodev/class-helper.php",
"woodev/class-admin-notice-handler.php",
"woodev/class-admin-message-handler.php",
"woodev/class-plugin-exception.php",
"woodev/compatibility/class-plugin-compatibility.php",
"woodev/class-string-conversation.php",
"woodev/class-woodev-hook-deprecator.php",
"woodev/class-woodev-plugin-dependencies.php"
],
"psr-4": {
"Woodev\\Framework\\": "woodev/"
}
},
"autoload-dev": {
"psr-4": {
"Woodev\\Tests\\Unit\\": "tests/unit/",
"Woodev\\Tests\\Integration\\": "tests/integration/"
},
"exclude-from-classmap": [
"tests/unit/Shipping/Rest_Api/wc-geolocation-stub.php",
"tests/unit/Shipping/Rest_Api/wp-rest-controller-stub.php"
]
},
"scripts": {
"phpcs": "./vendor/bin/phpcs",
"phpcbf": "./vendor/bin/phpcbf",
"phpstan": "./vendor/bin/phpstan analyse --memory-limit=4G",
"test": "@test:unit",
"test:unit": [
"@php-version",
"./vendor/bin/phpunit --testsuite=Unit"
],
"php-version": "@php bin/check-php-version.php",
"test:integration": "./vendor/bin/phpunit --testsuite=Integration",
"lint": "@phpcs",
"fix": "@phpcbf",
"check": [
"@phpcs",
"@phpstan",
"@test:unit"
]
},
"scripts-descriptions": {
"phpcs": "Run PHP CodeSniffer (check code style)",
"phpcbf": "Run PHP Code Beautifier (auto-fix code style)",
"phpstan": "Run PHPStan static analysis",
"test": "Run unit tests",
"test:unit": "Run unit tests only",
"test:integration": "Run integration tests (requires wp-env)",
"lint": "Alias for phpcs",
"fix": "Alias for phpcbf",
"check": "Run all checks: phpcs + phpstan + unit tests",
"php-version": "Warn when the running PHP is outside the CI matrix (#609)"
},
"config": {
"platform": {
"php": "8.1"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"optimize-autoloader": true,
"sort-packages": true
},
"minimum-stability": "stable",
"prefer-stable": true,
"extra": {
"woodev": {
"planned-release": "2.0.8"
}
}
}