-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
126 lines (126 loc) · 3.66 KB
/
composer.json
File metadata and controls
126 lines (126 loc) · 3.66 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
{
"name": "your-name/your-plugin-name",
"description": "A powerful WordPress plugin built with modern best practices",
"type": "project",
"keywords": [
"wordpress",
"plugin",
"boilerplate",
"modern",
"best-practices"
],
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Your Name",
"email": "your-email@example.com",
"homepage": "https://your-website.com",
"role": "Developer"
}
],
"require": {
"php": ">=8.2",
"vlucas/phpdotenv": "^5.4"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.7",
"wordpress-coding-standards/wpcs": "^3.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"phpstan/phpstan": "^1.10",
"phpdocumentor/phpdocumentor": "^3.3",
"brain/monkey": "^2.6",
"mockery/mockery": "^1.5"
},
"autoload": {
"psr-4": {
"Plugin_Core\\": "includes/",
"Plugin_Core\\Providers\\": "providers/",
"Plugin_Core\\Admin\\": "admin/",
"Plugin_Core\\Public\\": "public/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "stable",
"prefer-stable": true,
"scripts": {
"post-install-cmd": [
"echo 'Plugin dependencies installed successfully.'",
"echo 'Remember to update the plugin configuration in config.php'"
],
"post-update-cmd": [
"echo 'Plugin dependencies updated successfully.'"
],
"test": [
"phpunit"
],
"test:coverage": [
"phpunit --coverage-html tests/coverage"
],
"test:integration": [
"phpunit --testsuite Integration"
],
"test:unit": [
"phpunit --testsuite Unit"
],
"lint": [
"phpcs --standard=phpcs.xml"
],
"lint:fix": [
"phpcbf --standard=phpcs.xml"
],
"analyze": [
"phpstan analyse includes providers admin public --level=8"
],
"docs": [
"phpdoc -d includes,providers,admin,public -t docs"
],
"security": [
"composer audit"
],
"build": [
"composer install --no-dev --optimize-autoloader",
"composer lint",
"composer test"
],
"clean": [
"rm -rf vendor/",
"rm -rf tests/coverage/",
"rm -rf docs/",
"rm -rf .phpunit.result.cache"
]
},
"config": {
"optimize-autoloader": true,
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"extra": {
"wordpress-install-dir": "tests/wordpress",
"plugin-name": "Your Plugin Name",
"plugin-slug": "your-plugin-name",
"plugin-version": "1.0.0",
"plugin-author": "Your Name",
"plugin-author-uri": "https://your-website.com",
"plugin-uri": "https://your-plugin.com",
"plugin-description": "A powerful WordPress plugin built with modern best practices",
"plugin-text-domain": "your-plugin-name",
"plugin-license": "GPL-2.0-or-later",
"plugin-license-uri": "http://www.gnu.org/licenses/gpl-2.0.txt",
"plugin-requires-wp": "5.0",
"plugin-requires-php": "8.2",
"plugin-tested-wp": "6.4"
},
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
]
}