Skip to content

platformsh-templates/sylius

Repository files navigation




Logo


Deploy Sylius on Platform.sh


Deploy on Platform.sh



This template builds a Sylius application for Platform.sh, which can be used as a starting point for developing complex e-commerce applications.

Sylius is a modern e-commerce solution for PHP, based on Symfony Framework.

Features

  • PHP 8.0
  • MySQL 10.2
  • Automatic TLS certificates
  • composer-based build

Post-install

By default, Sylius ignores the composer.lock file in Git. Once you have deployed the template, it is a good idea to remove composer.lock from .gitignore and commit it, so that you can benefit from repeatable builds on Platform.sh.

Customization

The following changes have been made relative to a plain Sylius 1.11 project. 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.
  • An additional Composer library, platformsh/symfonyflex-bridge, has been added. It automatically maps Platform.sh's environment variables to Symfony environment variables where possible. It leverages the platformsh/config-reader library.

Resources