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
dflydev/dot-access-datapowers dot-notation reads and writes.laminas/laminas-config-aggregatorpowers provider aggregation and optional cache files.psr/containerenables PSR-11 integration throughConfigContainer.psr/simple-cacheenablesconfigCache()andCachedConfig.
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.