Download the PHP package hryvinskyi/magento2-configuration-fields without Composer

On this page you can find all versions of the php package hryvinskyi/magento2-configuration-fields. 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 magento2-configuration-fields

Magento 2 Stores Configuration Elements Fields

A Magento 2 module that provides enhanced UI elements for the Stores > Configuration section, including a user-friendly cron expression editor field.

Features

Installation

Via Composer

Manual Installation

  1. Copy the module to app/code/Hryvinskyi/ConfigurationFields.
  2. Run the following Magento CLI commands:

How It Works

Example system.xml Usage

Tag List Configuration via DI

For custom TagList configuration, create virtual types in your module's di.xml:

Step 1: Create virtual types in di.xml

Step 2: Reference in system.xml

Configuration Options

Option Type Default Description
placeholder string "Type value and press Enter..." Input placeholder text
validation string ^[A-Za-z0-9]+$ Regex pattern for validation
uppercase boolean true Auto-uppercase input values
separator string \n Separator for values (\n, \t, ,, etc.)
save_type string separator Storage format: json, serialized, or separator

Storage Formats

Save Type Description Storage Example
separator Values separated by a character (default) VALUE1\nVALUE2\nVALUE3
json JSON array format ["VALUE1","VALUE2","VALUE3"]
serialized PHP serialized format a:3:{i:0;s:6:"VALUE1";...}

Complete Example

di.xml:

system.xml:

CodeMirror Editor Classes

The module provides pre-built CodeMirror editor classes for common languages in the CodeMirror namespace. Use them directly in your system.xml:

Namespace: Hryvinskyi\ConfigurationFields\Block\Adminhtml\System\Config\Form\Field\CodeMirror\

Available Editor Classes:

Class Language Mode
CssEditor CSS css
LessEditor LESS text/x-less
ScssEditor SCSS text/x-scss
JavascriptEditor JavaScript javascript
JsonEditor JSON application/json
HtmlEditor HTML (mixed) htmlmixed
XmlEditor XML xml
PhpEditor PHP php
SqlEditor SQL sql
YamlEditor YAML yaml
MarkdownEditor Markdown markdown
ShellEditor Shell/Bash shell

Usage in system.xml:

Custom CodeMirror Configuration via DI

For custom configuration (theme, options), create virtual types in your module's di.xml:

Configuration Options:

Option Type Default Description
mode string (per class) Syntax highlighting mode
theme string default Editor color theme
line_numbers boolean true Show line numbers
line_wrapping boolean true Wrap long lines

Available Themes:

CodeMirror UI Component Usage

For UI component forms (admin forms, not system configuration), use the CodeMirror form element.

In your UI component XML:

Screenshots

Support

For issues, questions or contributions, please contact the author or create an issue in the GitHub repository.

Author

License

This project is licensed under the MIT License.


All versions of magento2-configuration-fields with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-mbstring Version *
hryvinskyi/magento2-admin-ui Version ^1.0
magento/framework Version *
magento/module-backend Version *
magento/module-catalog Version *
magento/module-config Version *
magento/module-store Version *
magento/module-ui Version *
psr/log Version *
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 hryvinskyi/magento2-configuration-fields contains the following files

Loading the files please wait ...