How ph-7/ph7webappboilerplate works
This is an archived Silex/Twig PHP web-app boilerplate, not a domain-specific application. Its runtime workflow is: a web entry point creates the app, loads environment settings and bootstrap services, registers routes, and runs Silex; the home route invokes a controller that renders the index template. Bootstrap also configures Twig, assets, and error rendering. README-listed Symfony capabilities are dependency offerings rather than demonstrated application workflows; source excerpts do not show them being used. The graph reflects only shown wiring and documented framework capabilities.
Main entry points: bootstrap.php Service bootstrap · index.php Production entry · index_dev.php Development entry · routes.php Home route
Components 15
Web runtime
- Production entry
web/index.php - Development entry
web/index_dev.php - Environment config
app/config - Home route
app/routes.php - Home controller
src/Controller/MainController.php
App services
- Service bootstrap
app/bootstrap.php - Twig rendering
app/bootstrap.php - Asset service
app/bootstrap.php - Doctrine provider
app/bootstrap.php
Views and errors
- Home view
views/index.twig - Shared layout
views/layout.twig - Error rendering
app/bootstrap.php - Error view
views/error.twig
Framework capabilities
- Symfony capabilities
composer.json
Other components
- Web client
Connections 18
- Web client → Production entry: requests
- Production entry → Environment config: loads environment
web/index.php - Production entry → Service bootstrap: loads services
web/index.php - Production entry → Home route: loads routes
web/index.php - Production entry → Web client: runs app
web/index.php - Development entry → Environment config: loads dev config
web/index_dev.php - Development entry → Service bootstrap: loads services
web/index_dev.php - Development entry → Home route: loads routes
web/index_dev.php - Development entry → Web client: runs app
web/index_dev.php - Home route → Home controller: routes home
app/routes.php - Home controller → Twig rendering: renders template
src/Controller/MainController.php - Twig rendering → Home view: renders
- Service bootstrap → Twig rendering: registers
app/bootstrap.php - Service bootstrap → Asset service: registers
app/bootstrap.php - Service bootstrap → Doctrine provider: registers
app/bootstrap.php - Service bootstrap → Error rendering: registers errors
app/bootstrap.php - Error rendering → Twig rendering: renders error
app/bootstrap.php - Error rendering → Error view: selects template
app/bootstrap.php