← All modules

Magento 2 module · foundation

Core

Shared groundwork that most Infrangible modules are built on, plus command-line tools to encrypt, decrypt, export and import configuration values.

Core is the common base of the Infrangible module family. It bundles the building blocks that the other modules share, for example lists of attributes, categories, CMS pages, payment and shipping methods for configuration fields, admin buttons that run an action without leaving the configuration page, and many helpers for products, orders, customers, URLs and files. Shoppers do not see anything of it directly.

Merchants normally don’t install Core on purpose: it is pulled in automatically by the Infrangible modules that need it.

Features

  • Common groundwork for many Infrangible modules, so each module stays small and behaves consistently.
  • Ready-made selection lists for configuration fields (attributes, attribute sets, product types, categories, CMS pages and blocks, regions, order states and statuses, active payment and shipping methods).
  • Configuration buttons that start an action in the background and show the result directly on the page (used, for example, for “Send Test Mail” buttons).
  • Command-line tools for agencies and developers:
    • bin/magento config:encrypt and bin/magento config:decrypt encrypt or decrypt a value with the encryption key of the installation, for example to prepare a password for a configuration value.
    • bin/magento config:export-json writes all values of a configuration path (in all scopes) to a JSON file, and bin/magento config:import-json imports such a file again. This makes it easy to copy settings between a staging and a live store.

Configuration

Core has no settings. It works right after installation.

Good to know

Core is a building block that is installed automatically together with other Infrangible modules such as “Foundation”, “Backend Widget” and most store-facing modules.

Installation

Install the module with Composer in your Magento root directory:

composer require infrangible/m2-core

Then enable it and update the store as described in the installation guide.