Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 19, 2024 via composer

incenteev/composer-parameter-handler v2.1.5

Composer script handling your ignored parameter file
Package summary
Share
0
issues
1
license
4
MIT
Package created
26 Oct 2012
Version published
25 May 2022
Maintainers
1
Total deps
4
Direct deps
1
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
4 Packages, Including:
incenteev/composer-parameter-handler@v2.1.5
symfony/deprecation-contracts@v3.5.0
symfony/polyfill-ctype@v1.29.0
symfony/yaml@v6.4.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

1
All Dependencies CSV
β“˜ This is a list of incenteev/composer-parameter-handler 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/yamlv6.4.7-MIT
prod

Visualizations

Frequently Asked Questions

What does incenteev/composer-parameter-handler do?

The "incenteev/composer-parameter-handler" is a composer script that facilitates the management of parameter files which often get ignored during a composer install or update operation. Ideal for settings stored in a Yaml file under a top-level key (conventionally named "parameters"), this tool ensures smooth management and alignment of these parameters.

How do you use incenteev/composer-parameter-handler?

Using the incenteev/composer-parameter-handler is quite straightforward. Start by adding it to the "require" section of your root composer.json file.

Here's a simple code snippet:

{
    "require": {
        "incenteev/composer-parameter-handler": "~2.0"
    },
    "scripts": {
        "post-install-cmd": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters"
        ],
        "post-update-cmd": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters"
        ]
    },
    "extra": {
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        }
    }
}

In the above example, "app/config/parameters.yml" will be created or updated by the composer script, in line with the structure of the dist file "app/config/parameters.yml.dist".

The script handler will interactively ask you for parameters missing in this file, using the dist file's values as default. If composer is run in a non-interactive mode, the dist file's values will be used for missing parameters.

Please, bear in mind that this parameter handler will overwrite any comments or spaces in your parameters.yml file, so handle it with caution. Document your parameter's file in the dist version if you want to maintain clarity and readability.

Where are the incenteev/composer-parameter-handler docs?

The official documentation for the incenteev/composer-parameter-handler tool can be found on its GitHub page at https://github.com/Incenteev/ParameterHandler. This page provides extensive information about the package, including its usage instructions, default assumptions, configuration options, and handling multiple ignored files.