v0.1.0-alpha.11

Configuration

Config files return arrays (values and lambdas):

<?php // config/config.php
return [
    "debug" => true,
];

They are merged in this order (later wins):

  1. defaults (Config::DEFAULTS)
  2. site/config/config.php, site/config/config.{hostname}.php
  3. config/config.php, config/config.{hostname}.php

config.{hostname}.php is only loaded on that host, e.g. config.example.com.php. Use it for environment specific settings.

App::instance()->config->get("debug");

All options: Config reference.