This template provides the most basic configuration for running a custom PHP project built with Composer. It includes but doesn't make use of the Platform.sh config-reader
library. It can be used to build a very rudimentary application but is intended primarily as a documentation reference.
PHP is a high-performance scripting language especially well suited to web development.
- PHP 8.0
- Automatic TLS certificates
- Composer-based build
The following files are of particular importance. If using this project as a reference for your own existing project, replicate the changes below to your project.
- The
.platform.app.yaml
,.platform/services.yaml
, and.platform/routes.yaml
files have been added. These provide Platform.sh-specific configuration and are present in all projects on Platform.sh. You may customize them as you see fit. - A Composer library,
platformsh/config-reader
, has been added. It provides convenience wrappers for accessing the Platform.sh environment variables.