FastForward Config depends on the PSR-16 cache interface, not on a concrete cache backend. If you want to use configCache()
in a real application, provide any PSR-16 compatible implementation from your stack.
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/varexporterwrites reloadable PHP configuration whenPhpFileConfigpersistence is enabled, including supported objects and closures.laminas/laminas-config-aggregatorpowers provider aggregation and optional cache files.psr/containerenables PSR-11 integration throughConfigContainer.psr/simple-cacheenablesconfigCache()andCachedConfig.
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.