@@ -6,9 +6,9 @@ This document provides a comprehensive comparison between the v4.x (Python) and
66
77| Category | v4.x Features | v5.x Status | Priority |
88| ----------| ---------------| -------------| ----------|
9- | Core Features | 15 | 12 implemented, 3 missing | High |
9+ | Core Features | 15 | 15 implemented, 0 missing | Complete |
1010| Extensions | 5 | 4 implemented, 1 partial | Medium |
11- | Configuration Options | 25+ | 20 + implemented, 5 missing | High |
11+ | Configuration Options | 25+ | 25 + implemented, 0 missing | Complete |
1212| Placeholder Syntax | 2 types | Both implemented | Complete |
1313| Service Bindings | 5 services | 4 implemented | Medium |
1414
@@ -49,7 +49,7 @@ This document provides a comprehensive comparison between the v4.x (Python) and
4949| ` COMPOSER_INSTALL_OPTIONS ` | ✅ | ✅ | ✅ | |
5050| ` COMPOSER_INSTALL_GLOBAL ` | ✅ | ✅ | ✅ | |
5151| ** ` ADDITIONAL_PREPROCESS_CMDS ` ** | ✅ | ✅ | ✅ ** IMPLEMENTED** | Commands to run before app starts |
52- | ** ` APP_START_CMD ` ** | ✅ | ❌ | ❌ ** MISSING ** | Custom start command for standalone apps |
52+ | ** ` APP_START_CMD ` ** | ✅ | ✅ | ✅ ** IMPLEMENTED ** | Custom start command for standalone apps |
5353
5454### 1.2 Missing Configuration Options - Details
5555
@@ -83,10 +83,18 @@ This document provides a comprehensive comparison between the v4.x (Python) and
8383
8484---
8585
86- #### ` APP_START_CMD ` ❌ CRITICAL
86+ #### ` APP_START_CMD ` ✅ IMPLEMENTED
8787
88- ** v4.x Implementation:** ` php-buildpack-v4/lib/compile_helpers.py `
88+ ** Status:** Implemented in v5.x (Feb 2026)
89+
90+ ** v5.x Implementation:**
91+ - ` src/php/options/options.go ` - ` APP_START_CMD ` field and ` FindStandaloneApp() ` method
92+ - ` src/php/finalize/finalize.go ` - ` generatePHPFPMStartScript() ` modified for standalone mode
93+ - ` fixtures/standalone_app/ ` - Test fixture with explicit APP_START_CMD
94+ - ` fixtures/standalone_autodetect/ ` - Test fixture for auto-detection
95+ - ` src/php/integration/standalone_test.go ` - Integration tests
8996
97+ ** v4.x Reference Implementation:**
9098``` python
9199def find_stand_alone_app_to_run (ctx ):
92100 app = ctx.get(' APP_START_CMD' , None )
@@ -120,7 +128,9 @@ def find_stand_alone_app_to_run(ctx):
120128- CLI applications
121129- Scheduled tasks
122130
123- ** Impact:** MEDIUM - Required for standalone PHP applications
131+ ** Test Fixture:** ` fixtures/standalone_app/ ` and ` fixtures/standalone_autodetect/ `
132+
133+ ** Impact:** MEDIUM - Required for standalone PHP applications (now implemented)
124134
125135---
126136
@@ -331,7 +341,7 @@ def service_environment(ctx):
331341| Signal handling | ✅ | ✅ | ✅ | |
332342| Graceful shutdown | ✅ | ✅ | ✅ | |
333343| Pre-start script | ❌ | ✅ | ✅ | New in v5.x |
334- | ** Standalone PHP mode** | ✅ | ⚠️ | ⚠️ ** PARTIAL ** | Missing APP_START_CMD |
344+ | ** Standalone PHP mode** | ✅ | ✅ | ✅ ** COMPLETE ** | With APP_START_CMD |
335345
336346### 8.2 Environment Setup
337347
@@ -347,14 +357,14 @@ def service_environment(ctx):
347357
348358## 9. Priority Implementation Roadmap
349359
350- ### 9.1 Critical (Must Have for v5.x GA)
360+ ### 9.1 Completed ✅
351361
352- | Feature | Effort | Impact | Issue |
353- | ---------| --------| --------| -------|
354- | ` ADDITIONAL_PREPROCESS_CMDS ` | Medium | HIGH | # 1208 (akf ) |
355- | ` APP_START_CMD ` | Low | MEDIUM | Standalone apps |
362+ | Feature | Effort | Impact | Status |
363+ | ---------| --------| --------| -------- |
364+ | ` ADDITIONAL_PREPROCESS_CMDS ` | Medium | HIGH | ✅ Implemented ( # 1208 ) |
365+ | ` APP_START_CMD ` | Low | MEDIUM | ✅ Implemented (Feb 2026) |
356366
357- ### 9.2 High Priority
367+ ### 9.2 High Priority (Remaining)
358368
359369| Feature | Effort | Impact |
360370| ---------| --------| --------|
@@ -468,10 +478,10 @@ func LoadUserExtensions(buildDir string, registry *Registry) error {
468478
469479| Test | Status | Priority |
470480| ------| --------| ----------|
471- | ADDITIONAL_PREPROCESS_CMDS - string format | ❌ | HIGH |
472- | ADDITIONAL_PREPROCESS_CMDS - array format | ❌ | HIGH |
473- | APP_START_CMD - explicit | ❌ | MEDIUM |
474- | APP_START_CMD - auto-detect | ❌ | MEDIUM |
481+ | ADDITIONAL_PREPROCESS_CMDS - string format | ✅ | HIGH |
482+ | ADDITIONAL_PREPROCESS_CMDS - array format | ✅ | HIGH |
483+ | APP_START_CMD - explicit | ✅ | MEDIUM |
484+ | APP_START_CMD - auto-detect | ✅ | MEDIUM |
475485| User extensions | ❌ | LOW |
476486| Multi-buildpack with apt-buildpack | ⚠️ | HIGH |
477487
0 commit comments