|
1 | 1 | { |
2 | 2 | "name": "dgame/php-time", |
3 | | - "description": "php time conversion", |
4 | | - "license": "MIT", |
5 | 3 | "type": "library", |
6 | | - "homepage": "https://github.com/php-time", |
| 4 | + "description": "php time conversion", |
7 | 5 | "keywords": [ |
8 | 6 | "Date", |
9 | 7 | "Time", |
10 | 8 | "Timer", |
11 | 9 | "Clock", |
12 | 10 | "Time conversion" |
13 | 11 | ], |
| 12 | + "homepage": "https://github.com/php-time", |
| 13 | + "license": "MIT", |
14 | 14 | "authors": [ |
15 | 15 | { |
16 | 16 | "name": "Randy Schütt", |
17 | | - "email": "rswhite4@gmail.com" |
| 17 | + "email": "rswhite4@gmail.com", |
| 18 | + "role": "lead" |
18 | 19 | } |
19 | 20 | ], |
20 | 21 | "require": { |
21 | | - "php": ">=7.1" |
| 22 | + "php": "8.0", |
| 23 | + "thecodingmachine/safe": "^1.3" |
22 | 24 | }, |
23 | 25 | "require-dev": { |
24 | | - "phpunit/phpunit": ">=8", |
25 | | - "phpstan/phpstan": "^0.12" |
| 26 | + "ergebnis/composer-normalize": "^2.4", |
| 27 | + "ergebnis/phpstan-rules": "^0.15", |
| 28 | + "php-parallel-lint/php-parallel-lint": "^1.2", |
| 29 | + "phpstan/phpstan": "^0.12", |
| 30 | + "phpstan/phpstan-deprecation-rules": "^0.12", |
| 31 | + "phpstan/phpstan-strict-rules": "^0.12", |
| 32 | + "phpunit/phpunit": "^9.4", |
| 33 | + "roave/security-advisories": "dev-latest", |
| 34 | + "slevomat/coding-standard": "dev-master", |
| 35 | + "spaceemotion/php-coding-standard": "dev-master", |
| 36 | + "spaze/phpstan-disallowed-calls": "^1.5", |
| 37 | + "symplify/easy-coding-standard": "^9.3", |
| 38 | + "thecodingmachine/phpstan-safe-rule": "^1.0", |
| 39 | + "thecodingmachine/phpstan-strict-rules": "^0.12" |
| 40 | + }, |
| 41 | + "config": { |
| 42 | + "optimize-autoloader": true, |
| 43 | + "platform": { |
| 44 | + "php": "8.0" |
| 45 | + }, |
| 46 | + "preferred-install": "dist", |
| 47 | + "process-timeout": 0, |
| 48 | + "sort-packages": true |
26 | 49 | }, |
27 | 50 | "autoload": { |
28 | | - "classmap": [ |
29 | | - "src/" |
30 | | - ], |
| 51 | + "psr-4": { |
| 52 | + "Dgame\\Time\\": "src/" |
| 53 | + }, |
31 | 54 | "files": [ |
32 | 55 | "src/functions.php" |
33 | | - ], |
| 56 | + ] |
| 57 | + }, |
| 58 | + "autoload-dev": { |
34 | 59 | "psr-4": { |
35 | | - "Dgame\\Time\\": "src/" |
| 60 | + "Dgame\\Time\\Tests\\": "tests/" |
36 | 61 | } |
37 | 62 | }, |
| 63 | + "minimum-stability": "dev", |
| 64 | + "prefer-stable": true, |
38 | 65 | "scripts": { |
39 | | - "test": [ |
40 | | - "phpunit", |
41 | | - "phpstan analyse src --level=8" |
42 | | - ], |
43 | | - "coverage": [ |
44 | | - "phpunit --coverage-clover=coverage" |
45 | | - ] |
| 66 | + "coverage": "phpunit --coverage-clover=coverage", |
| 67 | + "lint": "phpcstd --continue", |
| 68 | + "lint:fix": "phpcstd --fix --continue", |
| 69 | + "lint:fix-style": "ecs --fix", |
| 70 | + "lint:static": "phpstan", |
| 71 | + "lint:style": "ecs", |
| 72 | + "test": "phpunit --exclude-group timer" |
46 | 73 | } |
47 | 74 | } |
0 commit comments