-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcomposer.json
More file actions
64 lines (64 loc) · 1.54 KB
/
composer.json
File metadata and controls
64 lines (64 loc) · 1.54 KB
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
{
"name": "staffbase/plugins-sdk-php",
"version": "3.0.0",
"type": "library",
"description": "Staffbase PHP SDK library for plugins.",
"keywords": ["staffbase", "plugins", "library", "php", "sdk"],
"homepage": "https://github.com/Staffbase/plugins-sdk-php",
"license": "Apache-2.0",
"authors": [
{
"name": "Vitaliy Ivanov",
"email": "vitaliy@staffbase.com"
}
],
"require": {
"php": "~8.3.0",
"lcobucci/jwt": "^5.5",
"lcobucci/clock": "^3.3"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "^3.0",
"friendsofphp/php-cs-fixer": "^3.75",
"phpseclib/phpseclib": "^2.0",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^10.0"
},
"autoload": {
"psr-4": {
"Staffbase\\plugins\\sdk\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Staffbase\\plugins\\test\\": "test/"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"phpstan/extension-installer": true
}
},
"scripts": {
"check": ["@cs-fixer:check", "@phpstan", "@test:coverage"],
"lint": ["@cs-fixer:check", "@phpstan"],
"fix": ["@cs-fixer:fix"],
"cs-fixer:check": "php-cs-fixer fix --dry-run --diff -v",
"cs-fixer:fix": "php-cs-fixer fix --diff -v",
"phpstan": "phpstan analyse --memory-limit=1G",
"test": "phpunit",
"test:coverage": "phpunit --coverage-text --coverage-clover=clover.xml",
"post-install-cmd": "cghooks add --ignore-lock",
"post-update-cmd": "cghooks update"
},
"extra": {
"hooks": {
"pre-commit": [
"composer fix",
"composer phpstan"
]
}
}
}