Skip to content
Admin & Security Extensions

Magento 2 Base Module (Required Library)

The free base module that every Panth extension for Magento 2 requires. Composer installs it with any mage2kishan package. It adds the Panth admin menu and settings tab and tells the other modules whether the store runs Hyvä or Luma.

  • Free
  • Themes listed: Hyvä + Luma
Free $0.00, in stock
Check requirementsSee the versions and themes listed for this package. Details Ask about setupInclude the package name and your Magento and PHP versions. Ask
$0.00
In stock
SKU
panth-core
Links
composer require mage2kishan/module-core
SKU
panth-core
  • Package requirementsRead the source documentation
  • Developer profileView Upwork profile
  • Themes listedHyvä + Luma
  • PHP versions listed8.1, 8.2, 8.3, 8.4
  • Installation questionsDiscuss your store setup

What it does for your store

The main features, as listed in the module documentation.

  • Shared admin home

    The Panth Extensions configuration tab and the Panth Infotech admin menu that other Panth modules add their settings to.

  • Theme detection

    Helper\Theme tells modules whether the storefront runs Hyvä or a Luma based theme, so they can pick the right template.

  • Theme variables

    Merges theme-config.json files from Panth modules and the active theme and prints them as CSS custom properties.

  • Upload and CSP rules

    A deny list of executable file extensions for upload handlers, a CSP whitelist and an extra image and connect hosts field.

  • Developer contracts

    ThemeBuildExecutorInterface, the panth_modules.xml registry, config helpers and the Swiper 11.2.10 bundle.

Installation

Example commands from the Magento root. Follow the package instructions and your staging and deployment process.

  1. 1Check the releaseMatch Magento, PHP, theme and dependency requirements.
  2. 2Install on stagingReview Composer changes and follow the package instructions.
  3. 3Configure and verifyUse the documented settings and test the affected features.
magento-root
$ composer require mage2kishan/module-core
$ bin/magento setup:upgrade
$ bin/magento setup:di:compile
$ bin/magento setup:static-content:deploy -f
$ bin/magento cache:clean

Listed requirements

These are the details supplied in this listing. Confirm the selected release supports your Magento edition, PHP and storefront.

Magento versions listed2.4.6, 2.4.7, 2.4.8
PHP versions listed8.1, 8.2, 8.3, 8.4
Themes listedHyvä, Luma
Composer packagemage2kishan/module-core

Read package requirements and license

Documentation

Product details and setup guidance. Check the package repository for release-specific instructions.

The shared library behind every Panth extension

Panth Core (Panth_Core) is the base module for the Panth extensions for Magento 2. Every other mage2kishan package lists it in composer.json, so Composer installs it for you. You only need this page if you want to know what it adds to a store or need to install it on its own.

The module makes no outbound network requests and declares no database tables.

What it adds

  • The Panth Extensions tab under Stores > Configuration, with its own Core Settings section, and the Panth Infotech admin menu that other Panth modules add their items to.
  • Helper\Theme, which reports whether the storefront runs a Hyvä or a Luma based theme.
  • ViewModel\ThemeConfig, which merges theme-config.json files from registered modules and the active theme and prints them as CSS custom properties in a style block at the start of every storefront page.
  • Child theme tools for Hyvä stores: a validation panel with Validate Theme Setup and Rebuild Theme CSS buttons, and a setup guide. The rebuild needs Panth Theme Customizer; without it the button explains that nothing was built.
  • Security\UploadExtensionPolicy, a deny list of executable file extensions that Panth upload handlers check.
  • Shared assets: the Swiper 11.2.10 bundle and an SVG icon set.

Settings

Stores > Configuration > Panth Extensions > Core Settings has Enable Panth Core, Debug Mode and Enable Caching, the CSP hosts field, the child theme panels and a module information block. Debug Mode writes messages prefixed with "Panth Core:" to the Magento log.

Things to know before installing

  • Panth Core ships a csp_whitelist.xml for common font, CDN, reCAPTCHA, analytics and payment hosts, and an Additional Image / Connect Hosts field that adds hosts to img-src and connect-src.
  • It sets the checkout page CSP to report only, so inline scripts from third party checkout modules are reported instead of blocked. Override csp/mode/storefront_checkout_index_index/report_only if you want it enforced.
  • It declares two plugins: one on the UI component DataProvider that hides a foreach() warning some grids raise in developer mode, and one that creates the view before page results are built.
  • On stores upgrading from 1.1.x, setup:upgrade drops the old panth_core_notification and panth_core_notification_display tables. Run setup:upgrade --safe-mode=1 to back them up first.

Requirements

  • Magento Open Source or Adobe Commerce 2.4.4 to 2.4.8.
  • PHP 8.1, 8.2, 8.3 or 8.4.
  • Composer 2. Hyvä is optional.

To remove it, uninstall every other mage2kishan package first; Composer will not remove Panth Core while one of them needs it.

Free and open source under the MIT License.

Developer notes

  • PHP namespace Panth\Core. Panth_Core loads after Magento_Store, Magento_Config, Magento_Backend, Magento_Checkout and Magento_Csp.
  • Helper\AbstractConfig is the abstract config helper, with getConfig() and isSetFlag() at store scope. Subclasses implement getConfigValue() and isEnabled().
  • Helper\Theme has isHyva(), isLuma(), getCurrentTheme(), getTemplateForTheme(), useAlpineJs(), useKnockoutJs() and resetCache().
  • Modules join ViewModel\ThemeConfig through the registeredModules argument in their own etc/frontend/di.xml. It provides getCssVariables() and getValue(), which takes a dot separated path.
  • ViewModel\HeroIcon has getIcon($name, $class, $type), hasIcon(), getAvailableIcons() and named shortcuts such as menu() and search(). On Hyvä it is registered as heroIcon in the view model registry.
  • Api\ThemeBuildExecutorInterface::exportAndBuild(bool $forceNpmBuild = false) returns an array with success, message and optional output. The default preference is Model\NoopThemeBuildExecutor, and Panth Theme Customizer overrides it.
  • Model\ModuleRegistry reads and caches the merged etc/panth_modules.xml files (name, config_section, enabled). The schema is etc/panth_modules.xsd.
  • Swiper is available as the static assets Panth_Core::js/swiper-bundle.min.js and Panth_Core::css/swiper-bundle.min.css.
  • The frontend plugin Plugin\InitViewBeforePagePlugin on PageFactory::create() and ResultFactory::create() (page results only) creates the view first. Per the module README, without it a controller that does not extend Magento\Framework\App\Action\Action can get its layout generated twice and lose the blocks in head.additional.
  • The module registers no event observers.
  • ACL resources: Panth_Core::panth_extensions with its child Panth_Core::config, and Panth_Core::core_config under Stores > Settings > Configuration, also used by the admin child theme actions.
  • Admin route panthcore, for the POST only child theme validate and rebuild actions.
More information
Module Category Admin Tools
Best For All Sizes

Changelog

  1. 1.2.6, 2026-10-30

    • Released under the MIT License: this module is free and open-source software.
  2. 1.2.5, 2026-10-03

    • Core Settings: the Child Theme Validation panel now spans the full section width like the setup guide, so check messages no longer wrap into a narrow column at 1024px, and each message sits beside its label.
    • Child Theme Validation reports "Child Theme: No" when the active theme is Panth/Infotech itself, matching the checks below it.
    • Rebuild Theme CSS explains that Panth_ThemeCustomizer is not installed or is disabled.
    • Hero icons are marked aria-hidden and not focusable, so screen readers skip decorative SVGs.
Full history on GitHub

FAQ

Do I have to pay for Panth Core?

No. Panth Core is free and open source under the MIT License, like every Panth extension.

Can I use Panth Core without any other Panth extensions?

Yes, but it does little on its own: the Panth admin tab and menu, the CSP hosts field and the theme variables block. Note that it sets the checkout page CSP to report only. Most stores get it as a dependency of another Panth module.

Will Panth Core slow down my store?

It prints one style block of CSS custom properties near the start of each storefront page and adds a few admin pages. It makes no outbound network requests. Measure your own pages if you need numbers.

Does Panth Core conflict with any other extensions?

It does not edit Magento core files. It adds a CSP whitelist, sets the checkout CSP to report only, and declares two plugins: one on the UI component DataProvider and one that creates the view before page results are built. Check these first if you see a conflict.

Can I uninstall Panth Core?

Yes, after you remove every other mage2kishan package, because Composer will not remove Panth Core while one of them needs it. Then run bin/magento module:disable Panth_Core, composer remove mage2kishan/module-core, bin/magento setup:upgrade and bin/magento cache:flush.

Is the source code available?

Yes. The source is on GitHub at github.com/mage2sk/module-core under the MIT License.

Does Panth Core work with multi-store setups?

Yes. The general and CSP settings can be set at default, website and store view scope. The child theme panels and the module information block are default scope only.

Does Panth Core support multi-language stores?

Its labels go through Magento's translation function, so they can be translated with a language pack or a theme CSV. The module does not ship translation files.

Kishan Savaliya

Questions before you install?

Send me your composer.json and I will check for conflicts first. Free. Installation is +$45, custom work is quoted first.

Ask on WhatsApp