2017 © Pedro Peláez
 

symfony-bundle parameterizer-bundle

Elao Parameterizer Bundle

image

elao/parameterizer-bundle

Elao Parameterizer Bundle

  • Monday, August 25, 2014
  • by Elao
  • Repository
  • 16 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

ElaoParameterizerBundle

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Scrutinizer Code Quality, (*2)

Description:

This bundle integrates ElaoParameterizer in your project, which is a clean and easy way to graphically handle php parameters using dat.GUI, (*3)

Installation:

Add ElaoParameterizerBundle in your composer.json (you would better use it as a development requirement):, (*4)

{
    "require-dev": {
        "elao/elao/parameterizer-bundle": "1.0.*"
    }
}

Now tell composer to download the bundle by running the command:, (*5)

$ php composer.phar update elao/parameterizer

How to use it:

Have a look on ElaoParameterizer to understand Patterns/Parameters concepts and usages., (*6)

You can declare patterns :, (*7)

Programatically

// Get service
$parameterizer = $this->get('elao_parameterizer');

$parameterizer
    ->create('foo')
        ->create('bar', 'value')
        ->create('baz', 456, array(
            'label'   => 'Baz',
            'choices' => array(123, 456, 789)
        ));

In config.yml

elao_parameterizer:
    patterns:
        foo:
            parameters:
                bar: value
                baz:
                    value: 456
                    options:
                        label:   Baz
                        choices: [123, 456, 789]

In services

<service id="foo.parameters"
     class="%elao_parameterizer.pattern.class%"
     factory-service="elao_parameterizer.factory"
     factory-method="createPattern"
>
    <tag name="elao_parameterizer.pattern" />
    <argument>foo</argument>
    <call method="create">
        <argument>bar</argument>
        <argument>value</argument>
    </call>
    <call method="create">
        <argument>baz</argument>
        <argument>456</argument>
        <argument type="collection">
            <argument key="label">Baz</argument>
            <argument key="choices" type="collection">
                <argument>123</argument>
                <argument>456</argument>
                <argument>789</argument>
            </argument>
        </argument>
    </call>
</service>

The Versions

25/08 2014

dev-master

9999999-dev https://github.com/Elao/ElaoParameterizerBundle

Elao Parameterizer Bundle

  Sources   Download

MIT

The Requires

 

bundle elao parameterizer

25/08 2014

1.0.2

1.0.2.0 https://github.com/Elao/ElaoParameterizerBundle

Elao Parameterizer Bundle

  Sources   Download

MIT

The Requires

 

bundle elao parameterizer

03/07 2014

1.0.1

1.0.1.0 https://github.com/Elao/ElaoParameterizerBundle

Elao Parameterizer Bundle

  Sources   Download

MIT

The Requires

 

bundle elao parameterizer

03/07 2014

1.0.0

1.0.0.0

Elao Parameterizer Bundle

  Sources   Download

MIT

The Requires

 

bundle elao parameterizer