|
5 | 5 | "type": "project",
|
6 | 6 | "license": "MIT",
|
7 | 7 | "require": {
|
8 |
| - "cakephp/cakephp": "^4.4", |
9 |
| - "cakephp/plugin-installer": "^1.3", |
10 |
| - "cakephp/chronos": "2.3.*" |
| 8 | + "php": ">=8.1", |
| 9 | + "cakephp/cakephp": "^5.0.1", |
| 10 | + "cakephp/migrations": "^4.0.0", |
| 11 | + "cakephp/plugin-installer": "^2.0", |
| 12 | + "mobiledetect/mobiledetectlib": "^3.74" |
| 13 | + }, |
| 14 | + "require-dev": { |
| 15 | + "cakephp/bake": "^3.0.0", |
| 16 | + "cakephp/cakephp-codesniffer": "^5.0", |
| 17 | + "cakephp/debug_kit": "^5.0.0", |
| 18 | + "josegonzalez/dotenv": "^4.0", |
| 19 | + "phpunit/phpunit": "^10.1.0" |
| 20 | + }, |
| 21 | + "suggest": { |
| 22 | + "markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.", |
| 23 | + "dereuromark/cakephp-ide-helper": "After baking your code, this keeps your annotations in sync with the code evolving from there on for maximum IDE and PHPStan/Psalm compatibility.", |
| 24 | + "phpstan/phpstan": "PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code.", |
| 25 | + "cakephp/repl": "Console tools for a REPL interface for CakePHP applications." |
11 | 26 | },
|
12 | 27 | "autoload": {
|
13 | 28 | "psr-4": {
|
14 | 29 | "App\\": "src/"
|
15 | 30 | }
|
16 | 31 | },
|
| 32 | + "autoload-dev": { |
| 33 | + "psr-4": { |
| 34 | + "App\\Test\\": "tests/", |
| 35 | + "Cake\\Test\\": "vendor/cakephp/cakephp/tests/" |
| 36 | + } |
| 37 | + }, |
17 | 38 | "scripts": {
|
| 39 | + "post-install-cmd": "App\\Console\\Installer::postInstall", |
| 40 | + "post-create-project-cmd": "App\\Console\\Installer::postInstall", |
18 | 41 | "check": [
|
19 | 42 | "@test",
|
20 | 43 | "@cs-check"
|
21 | 44 | ],
|
22 |
| - "cs-check": "phpcs --colors -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/", |
23 |
| - "cs-fix": "phpcbf --colors --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/", |
24 |
| - "stan": "phpstan analyse src/", |
25 |
| - "stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan-shim:^0.11 && mv composer.backup composer.json", |
| 45 | + "cs-check": "phpcs --colors -p", |
| 46 | + "cs-fix": "phpcbf --colors -p", |
| 47 | + "stan": "phpstan analyse", |
26 | 48 | "test": "phpunit --colors=always"
|
27 | 49 | },
|
28 | 50 | "config": {
|
| 51 | + "platform-check": true, |
29 | 52 | "sort-packages": true,
|
30 | 53 | "allow-plugins": {
|
31 |
| - "*": true |
| 54 | + "cakephp/plugin-installer": true, |
| 55 | + "dealerdirect/phpcodesniffer-composer-installer": true |
32 | 56 | }
|
33 | 57 | }
|
34 | 58 | }
|
0 commit comments