-
Notifications
You must be signed in to change notification settings - Fork 2
/
composer.json
69 lines (69 loc) · 2.15 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
58
59
60
61
62
63
64
65
66
67
68
69
{
"name": "hillpy/mini-program-sdk",
"description": "MiniProgramSDK是一个PHP的小程序开发包。封装微信小程序后端相关接口,比如解密信息(用户信息、手机号)、获取小程序码等。",
"keywords": ["小程序", "miniprogram", "微信", "wechat"],
"type": "library",
"license": "MIT",
"authors": [
{
"name": "shinn_lancelot",
"email": "[email protected]",
"homepage": "https://hillpy.com",
"role": "Developer"
}
],
"require": {
"php": ">=5.4.0",
"predis/predis": "^1.1"
},
"require-dev": {
"php": ">=5.6",
"phpunit/phpunit": "^5",
"friendsofphp/php-cs-fixer": "^2.16",
"brainmaestro/composer-git-hooks": "^2.8"
},
"support": {
"issues": "https://github.com/hillpy/MiniProgramSDK/issues"
},
"minimum-stability": "stable",
"autoload": {
"psr-4": {
"Hillpy\\MiniProgramSDK\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Hillpy\\MiniProgramSDK\\Tests\\": "tests/"
}
},
"extra": {
"hooks": {
"pre-commit": [
"composer tests",
"composer check-style"
],
"post-merge": "composer install"
}
},
"scripts": {
"post-install-cmd": [
"cghooks add --ignore-lock",
"cghooks update",
"@php -r \"file_exists('tests/Env.php') || copy('tests/EnvExample.php', 'tests/Env.php');\""
],
"post-update-cmd": [
"cghooks update"
],
"cghooks": "cghooks",
"check-style": "php-cs-fixer fix --using-cache=no --diff --config=.php_cs --dry-run --ansi",
"fix-style": "php-cs-fixer fix --using-cache=no --config=.php_cs --ansi",
"tests": "phpunit tests --colors=always",
"test": "phpunit"
},
"scripts-descriptions": {
"check-style": "Run style checks (only dry run - no fixing!).",
"fix-style": "Run style checks and fix violations.",
"tests": "Run all tests.",
"test": "Run phpunit."
}
}