Skip to documentation

Installation

Requirements

Requirement Notes
PHP Version 8.3 or newer.
Composer Used to install the package and its runtime dependencies.
PHP config files Required only when you load configuration from directories. Each file must return an array.

Install The Package

composer require fast-forward/config

What Gets Installed

  • brick/varexporter writes reloadable PHP configuration when PhpFileConfig persistence is enabled, including supported objects and closures.
  • laminas/laminas-config-aggregator powers provider aggregation and optional cache files.
  • psr/container enables PSR-11 integration through ConfigContainer .
  • psr/simple-cache enables configCache() and CachedConfig .

Dot-notation reads, writes, and configuration merging use native PHP arrays and require no additional dependency.

Importing The Helper Functions

The factory helpers are plain PHP functions in the FastForward\\Config namespace. Import them with use function :

use function FastForward\Config\config;
use function FastForward\Config\configCache;
use function FastForward\Config\configDir;
use function FastForward\Config\configProvider;

This detail is easy to miss if you are used to importing classes only.

Search results