-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
composer.json
125 lines (125 loc) · 3.83 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"name": "nelson6e65/php_nml",
"description": "PHP: Nelson Martell Library",
"type": "library",
"keywords": [
"framework"
],
"homepage": "https://php-nml.netlify.app",
"license": "MIT",
"authors": [
{
"name": "Nelson Martell",
"email": "[email protected]",
"homepage": "http://nelson6e65.github.io",
"role": "Developer"
}
],
"support": {
"issues": "https://github.com/nelson6e65/php_nml/issues",
"forum": "http://stackoverflow.com/tags/php_nml",
"gitter": "https://gitter.im/nelson6e65/php_nml",
"source": "https://github.com/nelson6e65/php_nml",
"wiki": "https://github.com/nelson6e65/php_nml/wiki",
"docs": "http://nelson6e65.github.io/php_nml/api"
},
"require": {
"php": ">=7.2",
"ext-mbstring": ">=7.2",
"ext-json": "*"
},
"suggest": {
"ext-gettext": "Required to enable translations and some functions"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.0",
"phpunit/phpunit": "^8 || ^9",
"nelson6e65/phpdoc-vuepress": "^1.0",
"phpstan/phpstan": "^1.4.2 || ^0.12.69",
"composer/composer": "^2.0",
"rector/rector": "0.12.* || ^0.9.19 || ^0.8",
"nelson6e65/code-sniffer-helpers": "^1.0"
},
"autoload": {
"psr-4": {
"NelsonMartell\\": "src"
},
"classmap": [
"polyfills/php-80"
],
"files": [
"src/constants.php",
"src/functions.php",
"config/bootstrap.php"
]
},
"autoload-dev": {
"psr-4": {
"NelsonMartell\\Test\\": "tests"
}
},
"scripts": {
"check:all": [
"@cs:php",
"@test",
"@cs:lint"
],
"refactor:lint": [
"rector process --dry-run"
],
"refactor:write": [
"rector process",
"@cs:fix"
],
"cs:php": [
"phpcs src/ tests/ config/ autoload.php rector.php -q --standard=Generic --sniffs=Generic.PHP.Syntax --colors",
"phpstan analyze"
],
"cs:lint": [
"phpcs src/ tests/ config/ autoload.php rector.php -p --runtime-set ignore_warnings_on_exit 1"
],
"cs:fix": [
"phpcbf src/ tests/ config/ autoload.php rector.php -p || phpcbf src/ tests/ config/ autoload.php rector.php -q"
],
"cs:fix-filtered": [
"NelsonMartell\\PhpCodeSniffer\\ComposerScripts::phpcbf"
],
"test": [
"phpunit --color=always"
],
"test:wip": [
"phpunit --color=always --group wip"
],
"test:coverage": [
"@putenv XDEBUG_MODE=coverage",
"phpunit --color=always --coverage-clover=\"output/code-coverage/clover.xml\""
],
"test:coverage-html": [
"@putenv XDEBUG_MODE=coverage",
"phpunit --color=always --coverage-html=\"output/code-coverage\""
],
"build:api-docs": [
"phpdoc"
]
},
"scripts-descriptions": {
"refactor:lint": "Runs Rector on the code to check available refactors.",
"refactor:write": "Refactor de code using Rector as helper.",
"check:all": "Runs coding standard analysis (PHP: Code Sniffer) + tests (PHPUnit).",
"cs:php": "Runs PHP syntax checks (PHP: Code Sniffer) and PHPStan analysis.",
"cs:lint": "Runs coding standards linting (PHP: Code Sniffer).",
"cs:fix": "Runs coding standards auto-fixes (PHP: Code Sniffer).",
"test": "Runs unit-testing with PHPUnit.",
"test:wip": "Runs Work In Progress tests with PHPUnit (marked with `@group wip`).",
"test:coverage": "Runs PHPUnit tests and builds the code coverage report (as XML clover format) in `output/code-coverage/clover.xml`.",
"test:coverage-html": "Runs PHPUnit tests and builds the code coverage report (as HTML) in `output/code-coverage/` directory.",
"build:api-docs": "Builds API documentation in VuePress sources format to `docs/api/` directory using phpDocumentor."
},
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}