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
composer require mage2kishan/module-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.
- 1Check the releaseMatch Magento, PHP, theme and dependency requirements.
- 2Install on stagingReview Composer changes and follow the package instructions.
- 3Configure and verifyUse the documented settings and test the affected features.
$ 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 listed | 2.4.6, 2.4.7, 2.4.8 |
|---|---|
| PHP versions listed | 8.1, 8.2, 8.3, 8.4 |
| Themes listed | Hyvä, Luma |
| Composer package | mage2kishan/module-core |
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_Coreloads afterMagento_Store,Magento_Config,Magento_Backend,Magento_CheckoutandMagento_Csp. Helper\AbstractConfigis the abstract config helper, withgetConfig()andisSetFlag()at store scope. Subclasses implementgetConfigValue()andisEnabled().Helper\ThemehasisHyva(),isLuma(),getCurrentTheme(),getTemplateForTheme(),useAlpineJs(),useKnockoutJs()andresetCache().- Modules join
ViewModel\ThemeConfigthrough theregisteredModulesargument in their ownetc/frontend/di.xml. It providesgetCssVariables()andgetValue(), which takes a dot separated path. ViewModel\HeroIconhasgetIcon($name, $class, $type),hasIcon(),getAvailableIcons()and named shortcuts such asmenu()andsearch(). On Hyvä it is registered asheroIconin the view model registry.Api\ThemeBuildExecutorInterface::exportAndBuild(bool $forceNpmBuild = false)returns an array with success, message and optional output. The default preference isModel\NoopThemeBuildExecutor, and Panth Theme Customizer overrides it.Model\ModuleRegistryreads and caches the mergedetc/panth_modules.xmlfiles (name, config_section, enabled). The schema isetc/panth_modules.xsd.- Swiper is available as the static assets
Panth_Core::js/swiper-bundle.min.jsandPanth_Core::css/swiper-bundle.min.css. - The frontend plugin
Plugin\InitViewBeforePagePluginonPageFactory::create()andResultFactory::create()(page results only) creates the view first. Per the module README, without it a controller that does not extendMagento\Framework\App\Action\Actioncan get its layout generated twice and lose the blocks inhead.additional. - The module registers no event observers.
- ACL resources:
Panth_Core::panth_extensionswith its childPanth_Core::config, andPanth_Core::core_configunder Stores > Settings > Configuration, also used by the admin child theme actions. - Admin route
panthcore, for the POST only child theme validate and rebuild actions.
| Module Category | Admin Tools |
|---|---|
| Best For | All Sizes |
Changelog
-
1.2.6, 2026-10-30
- Released under the MIT License: this module is free and open-source software.
-
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.
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.
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.