-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruntime.yml.example
More file actions
51 lines (38 loc) · 2.43 KB
/
Copy pathruntime.yml.example
File metadata and controls
51 lines (38 loc) · 2.43 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
# runtime.yml.example
# phpvm — per-project PHP runtime manifest
# Docs: https://github.com/yourname/phpvm/blob/main/docs/specs/MANIFEST_SPEC.md
#
# Copy this file to your project root as runtime.yml and customize.
# Commit runtime.yml to Git — it is the reproducibility contract for your project.
phpvm: "1"
# ── Runtime versions ──────────────────────────────────────────────────────────
runtime:
php: "8.3" # required — minor (8.3) or exact (8.3.14)
# node: "20" # optional — inject Node.js into environment
# composer: "2" # optional — Composer version (default: bundled with PHP)
# ── Database ──────────────────────────────────────────────────────────────────
database:
engine: mysql # mysql | mariadb | sqlite | none
version: "8" # required for mysql/mariadb
# ── PHP Extensions ────────────────────────────────────────────────────────────
extensions:
- redis
- imagick
- intl
# Core extensions (curl, mbstring, openssl, pdo, pdo_mysql) are always enabled.
# Add only the extras your project needs.
# ── Web Server ────────────────────────────────────────────────────────────────
server:
engine: nginx # nginx | apache | none
# port: 8080 # optional — auto-allocated if omitted
root: public # document root relative to project (default: public)
# ── Environment Variables ─────────────────────────────────────────────────────
environment:
APP_ENV: local
APP_DEBUG: "true"
DB_HOST: 127.0.0.1
# DB_PORT is set automatically from the allocated MySQL port
# ── Project Identity ──────────────────────────────────────────────────────────
project:
name: my-app
domain: myapp.local # phpvm adds this to your hosts file