|
27 | 27 | "source": "https://github.com/richan-fongdasen/laravel-i18n" |
28 | 28 | }, |
29 | 29 | "require": { |
30 | | - "php": "^7.2", |
31 | | - "illuminate/database": "5.8.*|^6.0|^7.0", |
32 | | - "illuminate/support": "5.8.*|^6.0|^7.0", |
33 | | - "nesbot/carbon": "^2.0" |
| 30 | + "php": "^7.3", |
| 31 | + "illuminate/database": "^8.0", |
| 32 | + "illuminate/support": "^8.0", |
| 33 | + "nesbot/carbon": "^2.16" |
34 | 34 | }, |
35 | 35 | "require-dev": { |
36 | | - "fzaninotto/faker": "^1.4", |
37 | | - "mockery/mockery": "^1.0", |
38 | | - "orchestra/testbench": "~3.8|~4.0|~5.0", |
39 | | - "orchestra/database": "~3.8|~4.0|~5.0", |
40 | | - "phpunit/phpunit": "^7.5|^8.0|^9.0" |
| 36 | + "ekino/phpstan-banned-code": "^0.3", |
| 37 | + "fzaninotto/faker": "^1.9", |
| 38 | + "mockery/mockery": "^1.3", |
| 39 | + "nunomaduro/larastan": "^0.6.4", |
| 40 | + "orchestra/database": "^6.0", |
| 41 | + "orchestra/testbench": "^6.0", |
| 42 | + "phpmd/phpmd": "^2.9", |
| 43 | + "phpstan/phpstan": "^0.12", |
| 44 | + "phpstan/phpstan-deprecation-rules": "^0.12", |
| 45 | + "phpunit/phpunit": "^9.3", |
| 46 | + "sebastian/phpcpd": "^6.0" |
41 | 47 | }, |
42 | 48 | "config": { |
43 | 49 | "sort-packages": true |
|
49 | 55 | }, |
50 | 56 | "autoload-dev": { |
51 | 57 | "psr-4": { |
52 | | - "RichanFongdasen\\I18n\\Tests\\": "tests/" |
| 58 | + "RichanFongdasen\\I18n\\Tests\\": "tests/", |
| 59 | + "Database\\Factories\\": "tests/Supports/Factories/" |
53 | 60 | } |
54 | 61 | }, |
55 | 62 | "extra": { |
|
62 | 69 | } |
63 | 70 | } |
64 | 71 | }, |
| 72 | + "scripts": { |
| 73 | + "analyse": [ |
| 74 | + "composer check-syntax", |
| 75 | + "composer phpstan-analysis", |
| 76 | + "composer phpmd-analysis", |
| 77 | + "vendor/bin/phpcpd --min-lines=3 --min-tokens=36 src/" |
| 78 | + ], |
| 79 | + "check-syntax": [ |
| 80 | + "! find src -type f -name \"*.php\" -exec php -l {} \\; | grep -v 'No syntax errors'", |
| 81 | + "! find tests -type f -name \"*.php\" -exec php -l {} \\; | grep -v 'No syntax errors'" |
| 82 | + ], |
| 83 | + "phpstan-analysis": [ |
| 84 | + "vendor/bin/phpstan analyse -c phpstan.neon --no-progress" |
| 85 | + ], |
| 86 | + "phpmd-analysis": [ |
| 87 | + "vendor/bin/phpmd src text codesize,controversial,design,naming,unusedcode,.phpmd.cleancode.xml" |
| 88 | + ], |
| 89 | + "cov-text": [ |
| 90 | + "phpdbg -dmemory_limit=-1 -qrr vendor/bin/phpunit --coverage-text" |
| 91 | + ], |
| 92 | + "cov-html": [ |
| 93 | + "phpdbg -dmemory_limit=-1 -qrr vendor/bin/phpunit --coverage-html coverage" |
| 94 | + ], |
| 95 | + "test": [ |
| 96 | + "vendor/bin/phpunit" |
| 97 | + ] |
| 98 | + }, |
65 | 99 | "minimum-stability": "dev", |
66 | 100 | "prefer-stable": true |
67 | 101 | } |
0 commit comments