-
Notifications
You must be signed in to change notification settings - Fork 10
/
composer.json
56 lines (56 loc) · 2.08 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
{
"name": "jikan/jikan-php",
"description": "PHP client for jikan rest",
"type": "library",
"license": "MIT",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^8.2",
"ext-json": "*",
"jane-php/open-api-runtime": "^7.6.1",
"symfony/http-kernel": "^6.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.11",
"jane-php/open-api-3": "^7.6.1",
"php-http/guzzle7-adapter": "^1.0",
"phpro/grumphp": "^1.13",
"phpunit/phpunit": "^9.5",
"rector/rector": "^1.0.4",
"squizlabs/php_codesniffer": "^3.7"
},
"autoload": {
"psr-4": {
"Jikan\\JikanPHP\\": [
"src"
]
}
},
"autoload-dev": {
"psr-4": {
"JikanPHP\\Test\\": [
"test"
]
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"phpro/grumphp": true,
"php-http/discovery": true
}
},
"scripts": {
"update-jikan": [
"rm -rf src/*",
"php vendor/bin/jane-openapi generate --config-file=config/jikan.php",
"find ./src/ -type f -name \"*Normalizer.php\" -exec sed -i 's/public function denormalize($data, $type, $format = null, array $context = \\[\\])/public function denormalize($data, $type, $format = null, array $context = \\[\\]):mixed/g' {} \\;",
"find ./src/ -type f -name \"*Normalizer.php\" -exec sed -i 's/public function normalize($object, $format = null, array $context = \\[\\])/public function normalize($object, $format = null, array $context = \\[\\]):array|\\\\ArrayObject|bool|float|int|string|null/g' {} \\;",
"php vendor/bin/php-cs-fixer -q --allow-risky=yes --config=config/.php-cs-fixer.dist.php fix",
"php vendor/bin/rector --no-diffs --clear-cache --config=config/rector.php",
"php vendor/bin/php-cs-fixer -q --allow-risky=yes --config=config/.php-cs-fixer.dist.php fix",
"php vendor/bin/grumphp run"
]
}
}