2017 © Pedro Peláez
 

symfony-bundle extended-measure-bundle

Provides new measures for Akeneo PIM CE and EE

image

akeneo/extended-measure-bundle

Provides new measures for Akeneo PIM CE and EE

  • Tuesday, April 10, 2018
  • by Akeneo
  • Repository
  • 11 Watchers
  • 1 Stars
  • 1,066 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 20 % Grown

The README.md

This extension is archived. It has been done for IcecatConnector: https://github.com/akeneo/IcecatConnector and we reintegrated it inside. If you want to use it and improve it, feel free to fork it :), (*1)

ExtendedMeasure bundle

Manage measure units in families and conversions from a unit to another, (*2)

Allows to : - Convert a value from a unit to another - Add more units to a family (group of measure units) - Create new measure families, (*3)

See AkeneoMeasureBundle for more information, (*4)

Build Status, (*5)

Requirements

ExtendedMeasureBundle Akeneo PIM Community Editions
dev-master v1.6.*, v1.7.*, v2.*

Measure configuration structure

A measure configuration YAML file is like this example:, (*6)

measures_config:
    Acceleration:
        standard: METER_PER_SQUARE_SECOND
        units:
            METER_PER_SQUARE_SECOND:
                convert: [{'mul': 1}]
                symbol: 'm/s²'
                name: 'meter per square second'
                unece_code: 'MTS'
                alternative_units: ['mdivs²']
  • measures_config: the symfony extension configuration key.
  • Acceleration: the measure family. In our case, we define units for physical acceleration.
  • standard: this key defines which unit will be used as the base unit for this family.
  • units: every unit of the family.
  • METER_PER_SQUARE_SECOND: a readable name for the unit.
  • convert: array of operations to convert this unit to the standard unit.
  • symbol: the usual symbol of the measure.
  • name: readable name useable as a label.
  • unece_code: code of the measure in the UNECE convention.
  • alternative_symbols: other symbols or names we could find for this same measure. The symbol can vary from one standard to another.

What's new

  • alternative_symbols: one measure can be identified with multiple symbols, to reflect the differences existing between measures systems. It can also be used to add diferent encoding of the same caracter like µ which can be encoded with the 'micro' UTF8 code or the greak 'mu' UTF8 code., (*7)

  • unece_code: alphanumeric identifier of the UNECE convention. Used by CNET for example (see http://www.unece.org/cefact/codesfortrade/codes_index.html), (*8)

  • A lot of new measures. So we had to split the configuration in multiple yaml files inside the Resources/config/measures directory., (*9)

Console commands

Because the number of measures is greatly increased, we provide some console commands to help keeping this configuration clean and to find information about measures., (*10)

  • pim:measures:check: parse all configuration files and check for the unicity of a unit inside a family, (*11)

  • pim:measures:find: find a measure by one of its units and return some information., (*12)

The Versions

10/04 2018

dev-master

9999999-dev

Provides new measures for Akeneo PIM CE and EE

  Sources   Download

OSL-3.0

The Requires

  • akeneo/pim-community-dev ^1.6 || ^2.0

 

The Development Requires

10/04 2018

v0.1.2

0.1.2.0

Provides new measures for Akeneo PIM CE and EE

  Sources   Download

OSL-3.0

The Requires

  • akeneo/pim-community-dev ^1.6 || ^2.0

 

The Development Requires

13/07 2017

v0.1.1

0.1.1.0

Provides new measures for Akeneo PIM CE and EE

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

03/05 2017

v0.1.0

0.1.0.0

Provides new measures for Akeneo PIM CE and EE

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires