|
1 | 1 | { |
2 | | - "name": "richan-fongdasen/eloquent-blameable", |
3 | | - "description": "Blameable behavior implementation for your Eloquent Model in Laravel", |
4 | | - "type": "library", |
5 | | - "license": "MIT", |
6 | | - "homepage": "https://github.com/richan-fongdasen/eloquent-blameable", |
7 | | - "keywords": [ |
8 | | - "laravel", |
9 | | - "eloquent", |
10 | | - "blameable" |
| 2 | + "name": "richan-fongdasen/eloquent-blameable", |
| 3 | + "description": "Blameable behavior implementation for your Eloquent Model in Laravel", |
| 4 | + "type": "library", |
| 5 | + "license": "MIT", |
| 6 | + "homepage": "https://github.com/richan-fongdasen/eloquent-blameable", |
| 7 | + "keywords": [ |
| 8 | + "laravel", |
| 9 | + "laravel-package", |
| 10 | + "eloquent", |
| 11 | + "blameable" |
| 12 | + ], |
| 13 | + "authors": [ |
| 14 | + { |
| 15 | + "name": "Richan Fongdasen", |
| 16 | + |
| 17 | + } |
| 18 | + ], |
| 19 | + "support": { |
| 20 | + "issues": "https://github.com/richan-fongdasen/eloquent-blameable/issues", |
| 21 | + "source": "https://github.com/richan-fongdasen/eloquent-blameable" |
| 22 | + }, |
| 23 | + "require": { |
| 24 | + "php": "^7.3", |
| 25 | + "illuminate/database": "^6.0|^7.0", |
| 26 | + "illuminate/support": "^6.0|^7.0" |
| 27 | + }, |
| 28 | + "require-dev": { |
| 29 | + "ekino/phpstan-banned-code": "^0.3.1", |
| 30 | + "mockery/mockery": "~1.0", |
| 31 | + "orchestra/database": "~4.0|~5.0", |
| 32 | + "orchestra/testbench": "~4.0|~5.0", |
| 33 | + "phpmd/phpmd": "^2.8", |
| 34 | + "phpstan/phpstan": "^0.11|^0.12", |
| 35 | + "phpstan/phpstan-deprecation-rules": "^0.11|^0.12", |
| 36 | + "phpstan/phpstan-strict-rules": "^0.11|^0.12", |
| 37 | + "phpunit/phpunit": "^9.0 || ^8.0", |
| 38 | + "sebastian/phpcpd": "^5.0" |
| 39 | + }, |
| 40 | + "config": { |
| 41 | + "sort-packages": true |
| 42 | + }, |
| 43 | + "autoload": { |
| 44 | + "psr-4": { |
| 45 | + "RichanFongdasen\\EloquentBlameable\\": "src/" |
| 46 | + }, |
| 47 | + "files": [ |
| 48 | + "src/helpers.php" |
| 49 | + ] |
| 50 | + }, |
| 51 | + "autoload-dev": { |
| 52 | + "psr-4": { |
| 53 | + "RichanFongdasen\\EloquentBlameableTest\\": "tests/" |
| 54 | + } |
| 55 | + }, |
| 56 | + "extra": { |
| 57 | + "laravel": { |
| 58 | + "providers": [ |
| 59 | + "RichanFongdasen\\EloquentBlameable\\ServiceProvider" |
| 60 | + ] |
| 61 | + } |
| 62 | + }, |
| 63 | + "scripts": { |
| 64 | + "analyse": [ |
| 65 | + "composer check-syntax", |
| 66 | + "composer phpstan-analysis", |
| 67 | + "composer phpmd-analysis", |
| 68 | + "vendor/bin/phpcpd --min-lines=3 --min-tokens=36 src/" |
11 | 69 | ], |
12 | | - "authors": [ |
13 | | - { |
14 | | - "name": "Richan Fongdasen", |
15 | | - |
16 | | - } |
| 70 | + "check-syntax": [ |
| 71 | + "! find src -type f -name \"*.php\" -exec php -l {} \\; | grep -v 'No syntax errors'", |
| 72 | + "! find tests -type f -name \"*.php\" -exec php -l {} \\; | grep -v 'No syntax errors'" |
17 | 73 | ], |
18 | | - "support": { |
19 | | - "issues": "https://github.com/richan-fongdasen/eloquent-blameable/issues", |
20 | | - "source": "https://github.com/richan-fongdasen/eloquent-blameable" |
21 | | - }, |
22 | | - "require": { |
23 | | - "php": "^7.2", |
24 | | - "illuminate/database": "5.8.*|^6.0|^7.0", |
25 | | - "illuminate/support": "5.8.*|^6.0|^7.0" |
26 | | - }, |
27 | | - "require-dev": { |
28 | | - "mockery/mockery": "~1.0", |
29 | | - "orchestra/testbench": "~3.8|~4.0|~5.0", |
30 | | - "orchestra/database": "~3.8|~4.0|~5.0", |
31 | | - "phpmd/phpmd": "^2.6", |
32 | | - "phpstan/phpstan": "^0.11|^0.12", |
33 | | - "phpstan/phpstan-deprecation-rules": "^0.11|^0.12", |
34 | | - "phpstan/phpstan-strict-rules": "^0.11|^0.12", |
35 | | - "phpunit/phpunit": "^9.0 || ^8.0 || ~7.0 || ~6.0", |
36 | | - "sebastian/phpcpd": "^5.0 || ^4.1 || ~3.0" |
37 | | - }, |
38 | | - "config": { |
39 | | - "sort-packages": true |
40 | | - }, |
41 | | - "autoload": { |
42 | | - "psr-4": { |
43 | | - "RichanFongdasen\\EloquentBlameable\\": "src/" |
44 | | - }, |
45 | | - "files": [ |
46 | | - "src/helpers.php" |
47 | | - ] |
48 | | - }, |
49 | | - "autoload-dev": { |
50 | | - "psr-4": { |
51 | | - "RichanFongdasen\\EloquentBlameableTest\\": "tests/" |
52 | | - } |
53 | | - }, |
54 | | - "extra": { |
55 | | - "laravel": { |
56 | | - "providers": [ |
57 | | - "RichanFongdasen\\EloquentBlameable\\ServiceProvider" |
58 | | - ] |
59 | | - } |
60 | | - }, |
61 | | - "scripts": { |
62 | | - "analyse": [ |
63 | | - "! find src -type f -name '*.php' -exec php -l {} \\; | grep -v 'No syntax errors'", |
64 | | - "vendor/bin/phpmd src/ text codesize,controversial,design,naming,unusedcode,.phpmd.cleancode.xml", |
65 | | - "vendor/bin/phpcpd --min-lines=3 --min-tokens=36 -vn src/", |
66 | | - "vendor/bin/phpstan analyse src/" |
67 | | - ] |
68 | | - }, |
69 | | - "minimum-stability": "dev", |
70 | | - "prefer-stable": true |
| 74 | + "phpstan-analysis": [ |
| 75 | + "vendor/bin/phpstan analyse -c phpstan.neon --no-progress" |
| 76 | + ], |
| 77 | + "phpmd-analysis": [ |
| 78 | + "vendor/bin/phpmd src text codesize,controversial,design,naming,unusedcode,.phpmd.cleancode.xml" |
| 79 | + ], |
| 80 | + "cov-text": [ |
| 81 | + "phpdbg -qrr vendor/bin/phpunit --coverage-text" |
| 82 | + ], |
| 83 | + "cov-html": [ |
| 84 | + "phpdbg -qrr vendor/bin/phpunit --coverage-html coverage" |
| 85 | + ], |
| 86 | + "test": [ |
| 87 | + "vendor/bin/phpunit" |
| 88 | + ] |
| 89 | + }, |
| 90 | + "minimum-stability": "dev", |
| 91 | + "prefer-stable": true |
71 | 92 | } |
0 commit comments