-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
126 lines (126 loc) · 4.29 KB
/
composer.json
File metadata and controls
126 lines (126 loc) · 4.29 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
118
119
120
121
122
123
124
125
126
{
"name": "progalaxyelabs/stonescriptphp-server",
"description": "Application skeleton for StoneScriptPHP. Ready-to-use project template with CLI tools, folder structure, and examples. Includes the stonescriptphp framework as a dependency.",
"type": "project",
"version": "3.8.0",
"license": "MIT",
"keywords": [
"stonescriptphp",
"php",
"api",
"rest",
"postgresql",
"skeleton",
"boilerplate"
],
"homepage": "https://stonescriptphp.org",
"support": {
"issues": "https://github.com/progalaxyelabs/StoneScriptPHP-Server/issues",
"source": "https://github.com/progalaxyelabs/StoneScriptPHP-Server",
"docs": "https://stonescriptphp.org/docs"
},
"authors": [
{
"name": "StoneScriptPHP Team",
"email": "team@progalaxyelabs.com",
"homepage": "https://stonescriptphp.org"
}
],
"require": {
"php": "^8.2",
"progalaxyelabs/stonescriptphp": "^3.0"
},
"require-dev": {
"phpunit/phpunit": "^11.0"
},
"autoload": {
"psr-4": {
"App\\": "src/App/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"bin": ["stone"],
"scripts": {
"post-install-cmd": [
"@php -r \"if (file_exists('vendor/progalaxyelabs/stonescriptphp/stone')) { copy('vendor/progalaxyelabs/stonescriptphp/stone', 'stone'); chmod('stone', 0755); echo '✅ Updated stone CLI from framework\\n'; }\""
],
"post-update-cmd": [
"@php -r \"if (file_exists('vendor/progalaxyelabs/stonescriptphp/stone')) { copy('vendor/progalaxyelabs/stonescriptphp/stone', 'stone'); chmod('stone', 0755); echo '✅ Updated stone CLI from framework\\n'; }\""
],
"post-create-project-cmd": [
"@php stone setup"
],
"dev": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
"@php -r \"passthru('docker build -t stonescriptphp-dev -f Dockerfile.dev . 2>&1 | grep -q \\\"Successfully built\\\" || docker build -t stonescriptphp-dev -f Dockerfile.dev .');\"",
"@php -r \"passthru('docker run -d --name stonescriptphp-dev -p 8000:8000 -v \\\"' . getcwd() . ':/app\\\" --env-file .env stonescriptphp-dev 2>&1');\"",
"@php -r \"echo '\\n\\033[0;32m✓ Development server started!\\033[0m\\n';\"",
"@php -r \"echo ' Access at: http://localhost:8000\\n';\"",
"@php -r \"echo ' Stop: composer stop\\n';\"",
"@php -r \"echo ' Logs: composer logs\\n\\n';\""
],
"serve": [
"@dev"
],
"stop": [
"@php -r \"passthru('docker stop stonescriptphp-dev 2>&1');\"",
"@php -r \"passthru('docker rm stonescriptphp-dev 2>&1');\"",
"@php -r \"echo '\\n\\033[0;32m✓ Development server stopped\\033[0m\\n\\n';\""
],
"restart": [
"@stop",
"@dev"
],
"logs": [
"Composer\\Config::disableProcessTimeout",
"docker logs -f stonescriptphp-dev"
],
"shell": [
"docker exec -it stonescriptphp-dev /bin/bash"
],
"build": [
"docker build -t stonescriptphp-dev -f Dockerfile.dev --no-cache ."
],
"clean": [
"@stop",
"@php -r \"passthru('docker rmi stonescriptphp-dev 2>&1');\"",
"@php -r \"echo '\\n\\033[0;33m⚠ Container and image removed\\033[0m\\n\\n';\""
],
"test": "phpunit",
"migrate": "php stone migrate"
},
"config": {
"sort-packages": true,
"optimize-autoloader": true,
"preferred-install": "dist"
},
"archive": {
"exclude": [
"/local-tests",
"/.github",
"/tests",
"/docs",
"/.git",
"/.env",
"/.env.*",
"*.pem",
"*.pub",
"*.key",
"*.log",
"/logs",
"/uploads",
"/.idea",
"/.vscode",
"/.claude",
"/.phpunit.cache",
"/vendor",
"/node_modules"
]
},
"minimum-stability": "stable",
"prefer-stable": true
}