Configuration

The Phundament config structure is straight forward, there are just two config files for an application:

Compared to yii2-app-basic and yii2-app-advanced Phundament uses an environment variables based configuration instead of an init script. See also Dev/prod parity for more information about this topic.

Hierachy

  1. docker-compose / Vagrant
  2. Docker image (build-process)
  3. .env

Note! While in Yii configuration files the last value takes precedence, because they are based on PHP arrays and merged together, ENV variables are immutable by default.

Virtual Hosts and nice URLs

If you choose APP_PRETTY_URLS=1 in your .env file, activate the web/.htaccess if you are devleoping on your local machine.

cp web/.htaccess-dist web/.htaccess

If you're working with Docker, you can use a reverse proxy to fully automate the virtual host setup.


Continue to Customization