-
Notifications
You must be signed in to change notification settings - Fork 16
/
composer.json
65 lines (64 loc) · 1.87 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
{
"name": "org_heigl/holidaychecker",
"description": "Check for holidays - localeaware",
"keywords": ["holiday", "check", "calendar", "country", "bank holiday"],
"type": "library",
"license": "MIT",
"authors": [{
"name": "Andreas Heigl",
"email": "[email protected]"
}],
"require": {
"php": "^7.3|^8.0",
"ext-intl": "*",
"ext-dom": "*",
"org_heigl/dateintervalcomparator": "^1.0"
},
"require-dev": {
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^8.0 || ^9.0",
"slevomat/coding-standard": "^6.4 || ^7.0 || ^8.0",
"squizlabs/php_codesniffer": "^3.0"
},
"autoload" : {
"psr-4" : {
"Org_Heigl\\Holidaychecker\\" : "src/"
}
},
"autoload-dev" : {
"psr-4" : {
"Org_Heigl\\HolidaycheckerTest\\" : "tests/"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts" : {
"check": [
"@cs-check",
"@test"
],
"upload-coverage": [
"curl -o coveralls -L https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar",
"chmod 755 coveralls",
"./coveralls -v"
],
"cs-download" : [
"curl -o phpcs -L https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.2.2/phpcs.phar",
"curl -o phpcs.asc -L https://github.com/squizlabs/PHP_CodeSniffer/releases/download/3.2.2/phpcs.phar.asc",
"# gpg --verify phpcs.asc phpcs",
"chmod 755 phpcs"
],
"cs-check": [
"@cs-download",
"./phpcs --version && ./phpcs"
],
"cs-fix": "phpcbf",
"test": "phpunit --colors=always",
"lintxml" : "for i in `ls share/*.xml` ; do xmllint --xinclude --noout --schema share/holidays.xsd $i; if [ ! $? -eq 0 ] ; then exit 1; fi; done || exit 1",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
}
}