-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathcomposer.json
More file actions
61 lines (61 loc) · 1.58 KB
/
composer.json
File metadata and controls
61 lines (61 loc) · 1.58 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
{
"name": "php-java/php-java",
"description": "Implement JVM by PHP",
"type": "library",
"license": "MIT",
"minimum-stability": "dev",
"authors": [
{
"name": "memory"
}
],
"bin": [
"PHPJava"
],
"require": {
"php": ">=7.3",
"ext-zip": "*",
"monolog/monolog": "^2.9.2",
"gabrielelana/byte-units": "^0.5.0",
"symfony/console": "^5.2",
"phpdocumentor/reflection-docblock": "^5.2",
"brick/math": "^0.9.1",
"nikic/php-parser": "^4.10"
},
"autoload": {
"psr-4": {
"PHPJava\\": "src/",
"PHPJava\\Console\\": "console/"
}
},
"autoload-dev": {
"psr-4": {
"PHPJava\\Tests\\": "tests/"
}
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.5",
"friendsofphp/php-cs-fixer": "^2.17",
"brainmaestro/composer-git-hooks": "^2.8"
},
"scripts": {
"test": "phpunit",
"cs": "phpcs -n --standard=phpcs.xml src",
"fix": "php-cs-fixer fix",
"tests": [
"@cs",
"@test"
],
"post-install-cmd": "[ \"$COMPOSER_DEV_MODE\" = 1 ] && cghooks add --ignore-lock",
"post-update-cmd": "[ \"$COMPOSER_DEV_MODE\" = 1 ] && cghooks update"
},
"extra": {
"hooks": {
"pre-commit": [
"git diff-index --cached --name-only HEAD | vendor/bin/php-cs-fixer fix",
"git update-index --again"
]
}
}
}