-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomposer.json
More file actions
117 lines (111 loc) · 3.9 KB
/
composer.json
File metadata and controls
117 lines (111 loc) · 3.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"name": "alfacode-team/php-io-cli",
"description": "Interactive CLI component runtime for PHP microservice and hexagonal architectures.",
"type": "library",
"license": "MIT",
"keywords": [
"cli",
"hexagonal-architecture",
"microservices",
"io",
"terminal"
],
"authors": [
{
"name": "Alfacode Team",
"email": "shamavurasheed@gmail.com",
"role": "Developer"
}
],
"autoload": {
"psr-4": {
"AlfacodeTeam\\PhpIoCli\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"AlfacodeTeam\\PhpIoCli\\Tests\\": "tests/"
}
},
"require": {
"php": "^8.2",
"psr/log": "^3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.50",
"infection/infection": "^0.29",
"mockery/mockery": "^1.6",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-mockery": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
"phpunit/phpunit": "^10.5 || ^11.0",
"rector/rector": "^1.0",
"symfony/console": "^6.0 || ^7.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true,
"allow-plugins": {
"infection/extension-installer": true,
"phpstan/extension-installer": true
}
},
"scripts": {
"test": "phpunit",
"test:unit": "phpunit --testsuite Unit --no-coverage",
"test:integration": "phpunit --testsuite Integration --no-coverage",
"test:coverage": "phpunit --coverage-html build/coverage/html --coverage-clover build/coverage/clover.xml",
"test:coverage:text":"phpunit --coverage-text",
"phpstan": "phpstan analyse --memory-limit=256M",
"stan": "@phpstan",
"cs-check": "php-cs-fixer fix --dry-run --diff --allow-unsupported-php-version=yes --config=php-cs-fixer.php",
"cs-fix": "php-cs-fixer fix --allow-unsupported-php-version=yes --config=php-cs-fixer.php",
"refactor": "rector process",
"mutation": "infection --threads=max --min-msi=60 --min-covered-msi=80",
"check": [
"@cs-check",
"@phpstan",
"@test"
],
"check:full": [
"@cs-check",
"@phpstan",
"@test:coverage",
"@mutation"
],
"demo": "php examples/demo.php"
},
"scripts-descriptions": {
"test": "Run the full test suite (Unit + Integration)",
"test:unit": "Run Unit tests only (fast, no I/O, no TTY)",
"test:integration": "Run Integration tests only",
"test:coverage": "Run tests and generate HTML + Clover coverage reports",
"test:coverage:text":"Run tests and print coverage summary to stdout",
"phpstan": "Run PHPStan static analysis at level 8",
"stan": "Alias for phpstan",
"cs-check": "Check code style without modifying files (dry-run)",
"cs-fix": "Apply PHP CS Fixer rules to src/, tests/, examples/",
"refactor": "Run Rector to apply automated code upgrades",
"mutation": "Run mutation testing with Infection (min MSI 60 %, min covered 80 %)",
"check": "Run cs-check + phpstan + tests (standard CI gate)",
"check:full": "Run check + coverage + mutation (full quality gate)",
"demo": "Launch the interactive component demo (requires a real TTY)"
},
"extra": {
"_comment": "── php-io-cli: command auto-discovery ──────────────────────────────────────",
"_comment2": "Applications that depend on this library should add their own 'extra.php-io-cli'",
"_comment3": "block in THEIR composer.json (not this file). Example:",
"_example": {
"extra": {
"php-io-cli": {
"commands":[
"App\\Commands\\ServeCommand",
"App\\Commands\\MakeModelCommand",
"App\\Commands\\MigrateCommand"
]
}
}
}
}
}