File tree 1 file changed +50
-8
lines changed
1 file changed +50
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"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
+ ],
4
15
"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"
6
21
},
7
- "license" : " MIT" ,
8
22
"autoload" : {
9
23
"psr-4" : {
10
- "Javadev \\ LeetCodeInPhp \\ " : " "
24
+ "leetcode \\ " : " src/main/php/ "
11
25
}
12
26
},
13
- "authors " : [
14
- {
15
- "name " : " Valentyn Kolesnikov "
27
+ "autoload-dev " : {
28
+ "psr-4" : {
29
+ "leetcode \\ tests \\ " : " src/test/php/ "
16
30
}
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
18
60
}
You can’t perform that action at this time.
0 commit comments