|
1 | 1 | {
|
2 | 2 | "name": "api-platform/demo",
|
3 | 3 | "description": "Demo app for the API Platform framework using Laravel",
|
4 |
| - "type": "project", |
5 |
| - "keywords": ["api-platform", "demo", "laravel", "api", "framework"], |
6 | 4 | "license": "MIT",
|
| 5 | + "type": "project", |
| 6 | + "keywords": [ |
| 7 | + "api-platform", |
| 8 | + "demo", |
| 9 | + "laravel", |
| 10 | + "api", |
| 11 | + "framework" |
| 12 | + ], |
7 | 13 | "require": {
|
8 | 14 | "php": "^8.3",
|
9 | 15 | "api-platform/laravel": "^4.0.16",
|
10 | 16 | "laravel/framework": "^11.41.3",
|
11 | 17 | "laravel/tinker": "^2.10.1"
|
12 | 18 | },
|
13 | 19 | "require-dev": {
|
| 20 | + "ergebnis/composer-normalize": "^2.45", |
14 | 21 | "fakerphp/faker": "^1.24.1",
|
15 | 22 | "laravel/pail": "^1.2.2",
|
16 | 23 | "laravel/pint": "^1.20",
|
|
19 | 26 | "nunomaduro/collision": "^8.6.1",
|
20 | 27 | "phpunit/phpunit": "^11.5.6"
|
21 | 28 | },
|
| 29 | + "minimum-stability": "stable", |
| 30 | + "prefer-stable": true, |
22 | 31 | "autoload": {
|
23 | 32 | "psr-4": {
|
24 | 33 | "App\\": "app/",
|
|
31 | 40 | "Tests\\": "tests/"
|
32 | 41 | }
|
33 | 42 | },
|
| 43 | + "config": { |
| 44 | + "allow-plugins": { |
| 45 | + "ergebnis/composer-normalize": true, |
| 46 | + "pestphp/pest-plugin": true, |
| 47 | + "php-http/discovery": true |
| 48 | + }, |
| 49 | + "bump-after-update": true, |
| 50 | + "optimize-autoloader": true, |
| 51 | + "preferred-install": "dist", |
| 52 | + "sort-packages": true |
| 53 | + }, |
| 54 | + "extra": { |
| 55 | + "laravel": { |
| 56 | + "dont-discover": [] |
| 57 | + } |
| 58 | + }, |
34 | 59 | "scripts": {
|
| 60 | + "post-update-cmd": [ |
| 61 | + "@php artisan vendor:publish --tag=laravel-assets --ansi --force" |
| 62 | + ], |
35 | 63 | "post-autoload-dump": [
|
36 | 64 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
37 | 65 | "@php artisan package:discover --ansi"
|
38 | 66 | ],
|
39 |
| - "post-update-cmd": [ |
40 |
| - "@php artisan vendor:publish --tag=laravel-assets --ansi --force" |
41 |
| - ], |
42 | 67 | "post-root-package-install": [
|
43 | 68 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
|
44 | 69 | ],
|
|
51 | 76 | "Composer\\Config::disableProcessTimeout",
|
52 | 77 | "npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"
|
53 | 78 | ],
|
| 79 | + "fix-cs": [ |
| 80 | + "./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=php-cs-fixer.dist.php" |
| 81 | + ], |
54 | 82 | "install-tools": [
|
55 | 83 | "composer install --working-dir=tools/php-cs-fixer",
|
56 | 84 | "composer install --working-dir=tools/phpstan",
|
57 | 85 | "composer install --working-dir=tools/rector"
|
58 | 86 | ],
|
59 |
| - "update-tools": [ |
60 |
| - "composer update --working-dir=tools/php-cs-fixer", |
61 |
| - "composer update --working-dir=tools/phpstan", |
62 |
| - "composer update --working-dir=tools/rector" |
63 |
| - ], |
64 |
| - "fix-cs": [ |
65 |
| - "./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=php-cs-fixer.dist.php" |
66 |
| - ], |
67 | 87 | "phpstan": [
|
68 | 88 | "./tools/phpstan/vendor/bin/phpstan"
|
69 | 89 | ],
|
|
74 | 94 | "@fix-cs",
|
75 | 95 | "@run-phpstan",
|
76 | 96 | "@run-rector"
|
| 97 | + ], |
| 98 | + "update-tools": [ |
| 99 | + "composer update --working-dir=tools/php-cs-fixer", |
| 100 | + "composer update --working-dir=tools/phpstan", |
| 101 | + "composer update --working-dir=tools/rector" |
77 | 102 | ]
|
78 |
| - }, |
79 |
| - "extra": { |
80 |
| - "laravel": { |
81 |
| - "dont-discover": [] |
82 |
| - } |
83 |
| - }, |
84 |
| - "config": { |
85 |
| - "optimize-autoloader": true, |
86 |
| - "preferred-install": "dist", |
87 |
| - "sort-packages": true, |
88 |
| - "allow-plugins": { |
89 |
| - "pestphp/pest-plugin": true, |
90 |
| - "php-http/discovery": true |
91 |
| - }, |
92 |
| - "bump-after-update": true |
93 |
| - }, |
94 |
| - "minimum-stability": "stable", |
95 |
| - "prefer-stable": true |
| 103 | + } |
96 | 104 | }
|
0 commit comments