Skip to content

Commit 19476e9

Browse files
committed
build: add scripts and normalize
Added scripts, normalized the archive, upgrade to php 8.0, and removed unused packages. Closes #1
1 parent 79dfcfe commit 19476e9

File tree

1 file changed

+30
-31
lines changed

1 file changed

+30
-31
lines changed

composer.json

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,67 @@
11
{
2-
"name": "josantonius/httpstatuscode",
3-
"type": "library",
4-
"description": "PHP library to get the meaning from HTTP response status codes.",
2+
"name": "josantonius/http-status-code",
3+
"description": "PHP library to get HTTP status code messages and definitions.",
4+
"license": "MIT",
5+
"type": "library",
56
"keywords": [
6-
"HTTP",
7-
"HTTP status code",
8-
"HHVM",
9-
"PHP"
7+
"http",
8+
"http-status-code",
9+
"php"
1010
],
11-
"license": "MIT",
1211
"authors": [
1312
{
14-
"name": "Josantonius",
15-
"email": "hello@josantonius.com",
16-
"homepage": "https://josantonius.com",
17-
"role": "Developer"
13+
"name": "Josantonius",
14+
"email": "hello@josantonius.dev",
15+
"homepage": "https://josantonius.dev",
16+
"role": "Developer"
1817
}
1918
],
2019
"support": {
21-
"issues": "https://github.com/josantonius/php-httpstatuscode/issues",
22-
"forum": "http://stackoverflow.com/tags/josantonius/php-httpstatuscode",
23-
"source": "https://github.com/josantonius/php-httpstatuscode"
24-
},
25-
"config": {
26-
"preferred-install": "dist"
20+
"issues": "https://github.com/josantonius/php-http-status-code/issues",
21+
"source": "https://github.com/josantonius/php-http-status-code",
22+
"discussions": "https://github.com/josantonius/php-http-status-code/discussions"
2723
},
28-
"minimum-stability": "stable",
2924
"require": {
30-
"php": "^5.6 || ^7.0"
25+
"php": "^8.0"
3126
},
3227
"require-dev": {
33-
"phpunit/phpunit": "^5.7 || ^6.0",
34-
"squizlabs/php_codesniffer": "^3.0",
35-
"friendsofphp/php-cs-fixer": "^2.3 || ^2.8",
36-
"phpmd/phpmd": "^2.6"
28+
"phpmd/phpmd": "^2.6",
29+
"phpunit/phpunit": "^9.5",
30+
"squizlabs/php_codesniffer": "^3.7"
3731
},
32+
"minimum-stability": "stable",
3833
"autoload": {
3934
"psr-4": {
40-
"Josantonius\\HTTPStatusCode\\": "src/"
35+
"Josantonius\\HttpStatusCode\\": "src/"
4136
}
4237
},
4338
"autoload-dev": {
4439
"psr-4": {
45-
"Josantonius\\HTTPStatusCode\\": "tests/"
40+
"Josantonius\\HttpStatusCode\\Tests\\": "tests/"
4641
}
4742
},
43+
"config": {
44+
"preferred-install": "dist"
45+
},
4846
"extra": {
4947
"branch-alias": {
5048
"dev-master": "1.0-dev"
5149
}
5250
},
5351
"scripts": {
54-
"phpunit": "vendor/bin/phpunit --colors=always;",
55-
"phpcs": "vendor/bin/phpcs --standard=phpcs.xml $(find . -name '*.php');",
56-
"phpmd": "vendor/bin/phpmd src,tests text ./phpmd.xml",
52+
"coverage": "vendor/bin/phpunit --coverage-clover=coverage.xml",
5753
"fix": [
58-
"vendor/bin/php-cs-fixer fix -v",
5954
"vendor/bin/phpcbf src tests"
6055
],
56+
"htmlCoverage": "vendor/bin/phpunit --coverage-html coverage",
57+
"phpcs": "vendor/bin/phpcs --standard=phpcs.xml $(find . -name '*.php');",
58+
"phpmd": "vendor/bin/phpmd src,tests text ./phpmd.xml",
59+
"phpunit": "vendor/bin/phpunit --colors=always;",
6160
"tests": [
6261
"clear",
6362
"@phpmd",
6463
"@phpcs",
6564
"@phpunit"
6665
]
6766
}
68-
}
67+
}

0 commit comments

Comments
 (0)