Skip to content

Commit 1f5bc81

Browse files
authored
Update composer.json
1 parent 746154b commit 1f5bc81

File tree

1 file changed

+50
-8
lines changed

1 file changed

+50
-8
lines changed

composer.json

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,60 @@
11
{
22
"name": "javadev/leetcode-in-php",
3-
"description": "Php-based LeetCode algorithm problem solutions, regularly updated",
3+
"type": "project",
4+
"description": "LeetCode in PHP",
5+
"keywords": [
6+
"leetcode",
7+
"algorithm"
8+
],
9+
"license": "MIT",
10+
"authors": [
11+
{
12+
"name": "Valentyn Kolesnikov"
13+
}
14+
],
415
"require": {
5-
"phpunit/phpunit": "^9.5"
16+
"php": "^8.0"
17+
},
18+
"require-dev": {
19+
"phpunit/phpunit": "^9.5",
20+
"phpstan/phpstan": "^0.12.88"
621
},
7-
"license": "MIT",
822
"autoload": {
923
"psr-4": {
10-
"Javadev\\LeetCodeInPhp\\": ""
24+
"leetcode\\": "src/main/php/"
1125
}
1226
},
13-
"authors": [
14-
{
15-
"name": "Valentyn Kolesnikov"
27+
"autoload-dev": {
28+
"psr-4": {
29+
"leetcode\\tests\\": "src/test/php/"
1630
}
17-
]
31+
},
32+
"extra": {
33+
"hooks": {
34+
"pre-commit": [
35+
"composer test",
36+
"composer check:style"
37+
],
38+
"pre-push": [
39+
"composer test",
40+
"composer check:style"
41+
]
42+
}
43+
},
44+
"scripts": {
45+
"post-merge": "composer install",
46+
"phpstan": "vendor/bin/phpstan analyse",
47+
"check:style": "php-cs-fixer fix --using-cache=no --diff --config=.php-cs-fixer.php --dry-run --ansi",
48+
"fixed:style": "php-cs-fixer fix --using-cache=no --config=.php_cs --ansi",
49+
"test": [
50+
"Composer\\Config::disableProcessTimeout",
51+
"vendor/bin/phpunit --colors=always --testdox"
52+
],
53+
"test:coverage": [
54+
"@putenv XDEBUG_MODE=coverage",
55+
"phpunit --color=always --coverage-clover=\"build/logs/clover.xml\""
56+
]
57+
},
58+
"minimum-stability": "dev",
59+
"prefer-stable": true
1860
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy