The Config Component
The Config component provides utilities to define and manage the configuration options of PHP applications. It allows you to:
- Define a configuration structure, its validation rules, default values and documentation;
- Support different configuration formats (YAML, XML, INI, etc.);
- Merge multiple configurations from different sources into a single configuration.
Note
You don't have to use this component to configure Symfony applications. Instead, read the docs about how to configure Symfony applications.
Installation
1
$ composer require symfony/config
Note
If you install this component outside of a Symfony application, you must
require the vendor/autoload.php
file in your code to enable the class
autoloading mechanism provided by Composer. Read
this article for more details.
This work, including the code samples, is licensed under a
Creative Commons BY-SA 3.0
license.