Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 30, 2024 via composer

symfony/config v7.0.6

Helps you find, load, combine, autofill and validate configuration values of any kind
Package summary
Share
0
issues
1
license
6
MIT
Package created
16 Oct 2011
Version published
27 Mar 2024
Maintainers
1
Total deps
6
Direct deps
3
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
symfony/config@v7.0.6
symfony/deprecation-contracts@v3.4.0
symfony/filesystem@v7.0.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/process@v7.0.7
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of symfony/config 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/deprecation-contractsv3.4.03.27 kBMIT
prod
symfony/filesystemv7.0.7-MIT
prod
symfony/polyfill-ctypev1.29.0-MIT
prod

Visualizations

Frequently Asked Questions

What does symfony/config do?

Symfony/config is a powerful tool that facilitates finding, loading, combining, autofilling, and validating configuration values of any kind. Whether your data source is a YAML, XML, INI file, or a database, Symfony/config is able to handle it, making it a versatile and crucial component in modern web development.

How do you use symfony/config?

To use Symfony/config, you first need to install it via composer with the command composer require symfony/config. Once installed, you can create a new instance of a ConfigBuilder and call its methods to configure your application. As Symfony/config supports many different types of configuration files, the exact code usage may vary. For XML configurations, for instance, you might use the XmlFileLoader class; for YAML files, the YamlFileLoader class would be applicable.

Here's a simple usage example:

<?php
use Symfony\Component\Config\FileLocator;
use Symfony\Component\Config\Loader\DelegatingLoader;
use Symfony\Component\Config\Loader\LoaderResolver;
use Symfony\Component\Config\Loader\YamlFileLoader;

// The FileLocator needs a list of directories where it should look for files
$locator = new FileLocator([__DIR__]);

// Create the resolver
$resolver = new LoaderResolver();

// Add some loaders to it (here, a YamlFileLoader example)
$resolver->addLoader(new YamlFileLoader($locator));

// Create the delegating loader 
$loader = new DelegatingLoader($resolver);

// Now you can load your configuration files
$configValues = $loader->load(__DIR__.'/config.yaml');

Where are the symfony/config docs?

You can find the Symfony/config documentation on the official Symfony website. Detailed, informational resources about the component, including all its features and functions, are available at https://symfony.com/doc/current/components/config.html. In these documents, you can learn how to properly use Symfony/config, understand best practices, and read about possible issues and solutions.