Commit 4cec19f
committed
Add comprehensive buildpack documentation
Add 80K of comprehensive documentation covering architecture, features, migration,
and service binding patterns for both end users and developers/maintainers.
Documentation Structure:
- docs/USER_GUIDE.md (15K, 865 lines) - Complete end-user guide
- docs/FEATURES.md (11K, 696 lines) - Developer reference with test coverage
- docs/BUILDPACK_COMPARISON.md (12K) - Cross-buildpack architectural analysis
- docs/VCAP_SERVICES_USAGE.md (12K) - Service binding patterns and best practices
- docs/REWRITE_MIGRATION.md (27K) - v4.x to v5.x migration guide
- docs/README.md (7K) - Navigation hub with best practices
USER_GUIDE.md (For End Users):
- Getting started (deploy in 2 commands)
- Web server configuration (Apache, Nginx, FPM-only)
- PHP configuration (versions, ini files, FPM pools)
- PHP extensions installation
- Composer and dependency management
- APM integration (NewRelic, AppDynamics, Dynatrace)
- Session storage (Redis, Memcached)
- Framework guides (Laravel, CakePHP, Symfony, Laminas)
- Advanced features (multi-buildpack, preprocess commands)
- Troubleshooting section
FEATURES.md (For Developers/Maintainers):
- 30+ features with explicit integration test references
- Test locations (file:line numbers)
- Fixture paths for each feature
- Implementation details and code snippets
- Test coverage analysis matrix
- Identification of features needing explicit tests
- Cross-references to integration tests
BUILDPACK_COMPARISON.md:
- Proves PHP v5.x follows same patterns as Go, Java, Ruby, Python buildpacks
- Documents VCAP_SERVICES availability during staging
- Explains why v4.x runtime rewrite was PHP-unique, not a CF standard
- Shows alignment with Cloud Foundry buildpack ecosystem
VCAP_SERVICES_USAGE.md:
- Clarifies VCAP_SERVICES IS available during staging (for extensions and Go code)
- Documents that @{VCAP_SERVICES} config file placeholders are not supported
- Provides service binding patterns and examples
- Migration strategies from v4.x
- Best practices and anti-patterns
REWRITE_MIGRATION.md:
- Comprehensive v4.x to v5.x migration guide
- Breaking changes in rewrite system
- Placeholder syntax changes
- User-provided config handling
- Corrects misconceptions about VCAP_SERVICES availability
Key Documentation Insights:
- VCAP_SERVICES IS available during staging in Go code (not just runtime)
- PHP v5.x aligns with all other CF buildpacks (Go, Java, Ruby, Python)
- v4.x runtime rewrite was PHP-unique, removed for CF standards alignment
- 95%+ test coverage verification for documented features
- Separate docs for end users vs developers/maintainers
The documentation demonstrates comprehensive feature coverage and provides
clear guidance for both buildpack users and maintainers.1 parent a32677b commit 4cec19f
File tree
7 files changed
+3600
-12
lines changed- docs
7 files changed
+3600
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
| |||
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
87 | | - | |
| 95 | + | |
88 | 96 | | |
89 | 97 | | |
90 | 98 | | |
| |||
118 | 126 | | |
119 | 127 | | |
120 | 128 | | |
121 | | - | |
| 129 | + | |
| 130 | + | |
122 | 131 | | |
123 | 132 | | |
124 | 133 | | |
125 | 134 | | |
126 | 135 | | |
127 | 136 | | |
128 | 137 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
138 | 141 | | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
142 | 199 | | |
143 | 200 | | |
144 | 201 | | |
| |||
175 | 232 | | |
176 | 233 | | |
177 | 234 | | |
178 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
179 | 300 | | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
180 | 335 | | |
| 336 | + | |
181 | 337 | | |
182 | 338 | | |
183 | 339 | | |
| |||
0 commit comments