-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
57 lines (57 loc) · 1.55 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
{
"name": "blankphp/framework",
"description": "a mvc framework",
"license": "MIT",
"authors": [
{
"name": "沉迷",
"email": "[email protected]"
}
],
"autoload": {
"psr-4": {
"BlankPhp\\": "src/blankphp/",
"BlankQwq\\Helpers\\": "src/helpers/"
},
"files": [
"src/helpers/helper.php"
]
},
"prefer-stable": true,
"require": {
"psr/log": "^1.1",
"predis/predis": "^1.1",
"ext-curl": "*",
"monolog/monolog": "^2.3",
"ext-pdo": "*",
"psr/http-message": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^6.2 | ^7 | ^8 | ^9",
"phpstan/phpstan": "^1.3",
"friendsofphp/php-cs-fixer": "^3 | ^2",
"brainmaestro/composer-git-hooks": "^2.8"
},
"extra": {
"hooks": {
"config": {
"stop-on-failure": ["pre-commit"]
},
"pre-commit": [
"composer fix-style",
"composer test",
"git add .",
"echo committing as $(git config user.name)"
]
}
},
"scripts": {
"post-install-cmd": "vendor/bin/cghooks add --ignore-lock",
"post-update-cmd": "vendor/bin/cghooks update",
"test" : [
"vendor/bin/phpunit"
],
"stan" : "vendor/bin/phpstan analyse src tests",
"fix-style": "vendor/bin/php-cs-fixer fix src --config=.php-cs-fixer.php --using-cache=no --ansi"
}
}