Download the PHP package icanboogie/config without Composer
On this page you can find all versions of the php package icanboogie/config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download icanboogie/config
More information about icanboogie/config
Files in icanboogie/config
Package config
Short Description Synthesizes low-level configurations.
License BSD-3-Clause
Homepage https://icanboogie.org/
Informations about the package config
Config
An API to build low-level configuration.
This package is used by the framework ICanBoogie to configure its components.
Configurations are defined by a set of files called fragments. Builders use these fragments to build configurations. Configurations are managed by a [Config][] instance. Configurations can be cached, which cancels the cost of the builds.
Installation
Configuration fragments
A configuration fragment is a PHP file returning a callable. Multiple fragments are used to build a configuration. They're usually located in "config" directories and are usually named after the config they are used to build.
Configuration provider
Configurations are read through a ConfigProvider.
The following example demonstrates how to get a configuration of class MyConfig
:
A NoBuilderDefined exception is thrown if there is no builder defined for a configuration class.
Configuration builders
Builders are defined for each configuration.
Caching configurations
Caching configurations removes the cost of building by reusing the result of a previous build. To enable caching, you just need to provide a cache implementing Storage.
Continuous Integration
The project is continuously tested by GitHub actions.
Code of Conduct
This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you're expected to uphold this code.
Contributing
Please see CONTRIBUTING for details.