-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomposer.json
More file actions
100 lines (100 loc) · 3.31 KB
/
Copy pathcomposer.json
File metadata and controls
100 lines (100 loc) · 3.31 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
{
"name": "{vendorname}/{vendor-prefix}-module-{modulename}",
"description": "Template repository for creating OpenEMR modules with Symfony-inspired MVC architecture",
"license": "GPL-3.0-or-later",
"type": "openemr-module",
"keywords": [
"openemr",
"module",
"healthcare"
],
"authors": [
{
"name": "Your Name",
"email": "your.email@opencoreemr.com",
"homepage": "https://opencoreemr.com",
"role": "Developer"
}
],
"homepage": "https://opencoreemr.com",
"support": {
"email": "support@opencoreemr.com",
"issues": "https://github.com/opencoreemr/oce-module-template/issues",
"source": "https://github.com/opencoreemr/oce-module-template"
},
"require": {
"php": ">=8.5",
"ext-filter": "*",
"openemr/oe-module-installer-plugin": "^0.1.5",
"psr/log": "^1.0 || ^2.0 || ^3.0",
"symfony/console": "^6.4 || ^7.0",
"symfony/event-dispatcher": "^6.4 || ^7.0",
"symfony/http-foundation": "^6.4 || ^7.0",
"symfony/yaml": "^6.4 || ^7.0",
"twig/twig": "^3.0"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.44",
"phpstan/phpstan": "^2.1",
"phpunit/phpunit": "^11.0",
"rector/rector": "^2.0",
"squizlabs/php_codesniffer": "^4.0"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"{VendorName}\\Modules\\{ModuleName}\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"{VendorName}\\Modules\\{ModuleName}\\Tests\\": "tests/"
}
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true,
"openemr/oe-module-installer-plugin": true,
"php-http/discovery": true
},
"sort-packages": true
},
"extra": {
"oe-module-name": "{vendor-prefix}-module-{modulename}"
},
"scripts": {
"post-install-cmd": [
"echo 'OpenCoreEMR Module installed successfully!'",
"echo 'Please go to Administration > Modules > Manage Modules to register and enable the module.'"
],
"post-update-cmd": [
"echo 'OpenCoreEMR Module updated successfully!'"
],
"_comment": "Composer scripts handle CODE QUALITY checks that work in any environment (local, Docker, CI). For infrastructure operations (Docker, database, module management), use Taskfile instead. See Taskfile.yml for separation of concerns.",
"check": [
"@php-lint",
"@phpcs",
"@phpstan",
"@rector"
],
"fix": [
"@phpcbf",
"@rector-fix"
],
"php-lint": "git ls-files -z '*.php' | xargs -0 -n1 php -l",
"phpcbf": "phpcbf",
"phpcs": "phpcs",
"phpstan": [
"@phpstan-ensure-tools",
"phpstan --memory-limit=512M analyse"
],
"phpstan-ensure-tools": "test -f tools/openemr/vendor/autoload.php || composer install --working-dir=tools/openemr --no-progress --no-interaction",
"phpunit": "phpunit --testdox",
"phpunit-coverage": "phpunit --coverage-html htmlcov --coverage-text",
"rector": "rector process --dry-run",
"rector-fix": "rector process",
"require-checker": "@php -r \"if(!shell_exec('which composer-require-checker')){echo \\\"composer-require-checker not found. Install globally: composer global require maglnet/composer-require-checker\\n\\\";exit(1);}\" && composer-require-checker check --config-file=.composer-require-checker.json",
"test": "@phpunit"
}
}