Skip to content

Commit e01cf4f

Browse files
committed
build: add scripts and normalize
Added scripts, normalized the archive, upgrade to php 8.1, and removed unused packages. Closes #4
1 parent 509f871 commit e01cf4f

File tree

1 file changed

+30
-33
lines changed

1 file changed

+30
-33
lines changed

composer.json

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,69 @@
11
{
2-
"name": "josantonius/errorhandler",
3-
"type": "library",
4-
"description": "PHP library for handling exceptions and errors.",
2+
"name": "josantonius/error-handler",
3+
"description": "PHP library for handling errors.",
4+
"license": "MIT",
5+
"type": "library",
56
"keywords": [
6-
"Exception",
7-
"Exception handler",
8-
"Error handler",
7+
"error",
8+
"error-handler",
99
"throw",
10-
"Error",
11-
"Throwable",
12-
"HHVM",
13-
"PHP"
10+
"throwable",
11+
"php"
1412
],
15-
"license": "MIT",
1613
"authors": [
1714
{
18-
"name": "Josantonius",
19-
"email": "hello@josantonius.com",
20-
"homepage": "https://josantonius.com",
21-
"role": "Developer"
15+
"name": "Josantonius",
16+
"email": "hello@josantonius.dev",
17+
"homepage": "https://josantonius.dev",
18+
"role": "Developer"
2219
}
2320
],
2421
"support": {
25-
"issues": "https://github.com/josantonius/php-errorhandler/issues",
26-
"forum": "http://stackoverflow.com/tags/josantonius/php-errorhandler",
27-
"source": "https://github.com/josantonius/php-errorhandler"
28-
},
29-
"config": {
30-
"preferred-install": "dist"
22+
"issues": "https://github.com/josantonius/php-error-handler/issues",
23+
"source": "https://github.com/josantonius/php-error-handler",
24+
"discussions": "https://github.com/josantonius/php-error-handler/discussions"
3125
},
32-
"minimum-stability": "stable",
3326
"require": {
34-
"php": "^5.6 || ^7.0"
27+
"php": "^8.1"
3528
},
3629
"require-dev": {
37-
"phpunit/phpunit": "^5.7 || ^6.0",
38-
"squizlabs/php_codesniffer": "^3.0",
39-
"friendsofphp/php-cs-fixer": "^2.3 || ^2.8",
40-
"phpmd/phpmd": "^2.6"
30+
"phpmd/phpmd": "^2.6",
31+
"phpunit/phpunit": "^9.5",
32+
"squizlabs/php_codesniffer": "^3.7"
4133
},
34+
"minimum-stability": "stable",
4235
"autoload": {
4336
"psr-4": {
4437
"Josantonius\\ErrorHandler\\": "src/"
4538
}
4639
},
4740
"autoload-dev": {
4841
"psr-4": {
49-
"Josantonius\\ErrorHandler\\": "tests/"
42+
"Josantonius\\ErrorHandler\\Tests\\": "tests/"
5043
}
5144
},
45+
"config": {
46+
"preferred-install": "dist"
47+
},
5248
"extra": {
5349
"branch-alias": {
5450
"dev-master": "1.0-dev"
5551
}
5652
},
5753
"scripts": {
58-
"phpunit": "vendor/bin/phpunit --colors=always;",
59-
"phpcs": "vendor/bin/phpcs --standard=phpcs.xml $(find . -name '*.php');",
60-
"phpmd": "vendor/bin/phpmd src,tests text ./phpmd.xml",
54+
"coverage": "vendor/bin/phpunit --coverage-clover=coverage.xml",
6155
"fix": [
62-
"vendor/bin/php-cs-fixer fix -v",
6356
"vendor/bin/phpcbf src tests"
6457
],
58+
"htmlCoverage": "vendor/bin/phpunit --coverage-html coverage",
59+
"phpcs": "vendor/bin/phpcs --standard=phpcs.xml $(find . -name '*.php');",
60+
"phpmd": "vendor/bin/phpmd src,tests text ./phpmd.xml",
61+
"phpunit": "vendor/bin/phpunit --colors=always;",
6562
"tests": [
6663
"clear",
6764
"@phpmd",
6865
"@phpcs",
6966
"@phpunit"
7067
]
7168
}
72-
}
69+
}

0 commit comments

Comments
 (0)