YireoTraining_ExampleLokiFieldComponents

Examples
PHP 8.1 - 8.4
Magento 2.4.7 | 2.4.8
CSP Yes
Latest Release 0.0.6

Example module to demonstrate various use-cases of Loki FieldComponents, as being used in the Yireo LokiCheckout extension suite for Magento 2.

Installation

Install this package via composer (assuming you have setup the composer.yireo.com repository correctly already):

composer require yireo-training/magento2-example-loki-field-components

Next, enable this module:

bin/magento module:enable YireoTraining_ExampleLokiFieldComponents

Support

For getting support, create an Issue under the following project URL:

https://gitlab.yireo.com/loki-checkout/YireoTraining_ExampleLokiFieldComponents

Loki Components

The following LokiComponents are created or references in this module:

example-loki-field-components.input_text example-loki-field-components.input_text_required example-loki-field-components.input_number example-loki-field-components.input_color example-loki-field-components.input_date example-loki-field-components.input_datetime example-loki-field-components.input_password example-loki-field-components.input_password_repeat example-loki-field-components.input_tel example-loki-field-components.input_url example-loki-field-components.input_email example-loki-field-components.textarea example-loki-field-components.checkbox example-loki-field-components.radio example-loki-field-components.select example-loki-field-components.multiselect example-loki-field-components.switch example-loki-field-components.range
Module Dependencies

The following dependencies are declared in the module its `etc/module.xml` file:

Loki_Components Loki_FieldComponents Magento_Customer Magento_Store YireoTraining_ExampleLokiComponents
Composer details
Magento module name
YireoTraining_ExampleLokiFieldComponents
Composer name
yireo-training/magento2-example-loki-field-components
Composer version
0.0.6
Default branch
main
Requirements
ext-json: *
loki/magento2-components: ^2.0
loki/magento2-field-components: ^2.0
magento/framework: ^103.0
magento/module-customer: ^103.0
magento/module-store: ^101.1
yireo-training/magento2-example-loki-components: ~0.0
Releases
dev-main#9f989fc465ea6c76970533cd78787319119ea721 20 October 2025
0.0.10 20 October 2025
0.0.9 20 October 2025
0.0.8 20 October 2025
0.0.7 20 October 2025
0.0.6 20 October 2025
0.0.5 20 October 2025
0.0.4 20 October 2025
0.0.3 20 October 2025
0.0.2 20 October 2025
0.0.1 20 October 2025
Changelog

[0.0.6] - 02 September 2025

Fixed

  • Refactor hard-coded field attributes to FieldViewModel::getFieldAttributes()
  • Add CI files

[0.0.5] - 21 August 2025

Fixed

  • Declare used PHP namespaces
  • Add escaping of template code
  • Fix all CSS todos
  • Declare used PHP namespaces
  • Document latest version of template

[0.0.4] - 18 August 2025

Fixed

  • Add Dutch translations

[0.0.3] - 28 July 2025

Fixed

  • Set page layout of demo pages to 1column

[0.0.2] - 24 July 2025

Fixed

  • Loosen up constraint

[0.0.1] - 22 July 2025

  • Initial release

Last modified: September 1, 2025