Download the PHP package nordcode/robo-parameters without Composer

On this page you can find all versions of the php package nordcode/robo-parameters. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package robo-parameters

Robo Parameters Task

Build Status Coverage Status Dependency Status

Robo Parameters provides tasks for the Robo PHP task runner to read and write parameters from/to files with various formats. You can read a parameter file to configure you tasks from a central file or write parameters to a configuration file for your own application to support your deployment setup

Currently, we support xml, ini, php, yaml and json files. The library comes with a dedicated task for Symfony parameter files that supports the Symfony XML and YAML format (currently no support for the Symfony PHP-configuration format).

Installation

Simply add the library as dependency to your composer.json (you will mostly only require this in dev):

or via console:

If you need the YAML reader/writer you will have to add the symfony/yaml component, too!

Usage

After installation you need to add the to your RoboFile by importing the trait:

Examples

Let's start with some examples. For detailed information on the different configuration options please see the reference at the end of this file.

Basic usage

Write with reading from boilerplate

Write Symfony parameters.yml

Use with Laravel (dotenv files)

Parameters Task Reference

A new instance can be created with $this->writeParameters($path, $format = null) when using the loadTasks trait.

->set(string $key, mixed $value), ->set(array $values)

Set a parameter to a fixed value. Does also accept a list of key => value pairs

->loadFromEnvironment(array $parameter_names)

Will attempt to load the parameter names from the environment variables.
The parameter names will always be uppercased, e.g. loading the parameter foo_bar will look for FOO_BAR in the environment

->envVariablePrefix(string $prefix)

Requires all parameters in the environment to be prefixed with the given values.
The prefix also follows the uppercase scheme, so loading foo with sf as prefix will actually search for SF_FOO

->failOnMissingEnvVariables()

Will make the task fail if one of the parameters set with ->loadFromEnvironment() could not be found

->fileHeader(array $lines), ->fileHeader(string $header)

Add a comment as header to the output file. The comment will always the correct syntax for the output format.
This can either be a string or an array of lines

->useBoilerplate(string $path)

Load all parameters from the given file

->overrideExisting()

Explicitly override the parameters file if it is already existing.
If this is not set the task will fail by default!

SymfonyParameters Task Reference

The dedicated Symfony task has the same methods as the Parameters task.
When using the loadTask trait a new instance will be created with $this->writeSymfonyParameters() by default this uses the YAML format and will try to load the app/config/parameters.yml.dist and write the final values to app/config/parameters.yml.

The FileConfigurable Task

If you would like to make your own task more dynamically by loading some settings from a central file, you can use the FileConfigurable trait:


All versions of robo-parameters with dependencies

PHP Build Version
Package Version
Requires codegyre/robo Version >=0.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nordcode/robo-parameters contains the following files

Loading the files please wait ....