mage2kishan/module-core 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mage2kishan/module-core

Composer 安装命令:

composer require mage2kishan/module-core

包简介

Panth Core — base module providing shared utilities, admin configuration helpers, the optional ThemeBuildExecutorInterface contract, and the panth_modules registry used by every other Panth extension. Required dependency for all Panth Infotech extensions on the Magento Marketplace.

README 文档

README

Panth Core: Free Required Base Module for Magento 2 (Hyva + Luma)

Magento 2.4.4 - 2.4.8 PHP 8.1 - 8.4 Hyva + Luma Live Demo & Details Packagist Upwork Top Rated Plus Website

Free, required foundation for the entire Panth Infotech extension suite. Panth Core gives every Panth module a shared admin menu, a unified configuration section, Hyva and Luma theme detection, an admin notification system, and a module registry. Install it once and every Panth extension plugs in automatically.

Product page: kishansavaliya.com/magento-2-core.html

Quick Answer

What is Panth Core? It is a free, required base module that every Panth Infotech extension depends on. It consolidates shared admin scaffolding, theme detection helpers, a notification system, and a module registry into one lightweight package.

What does it add to my store?

  • A single Panth Infotech admin sidebar entry so all Panth modules appear in one place.
  • A unified Stores > Configuration > Panth Extensions section for all Panth settings.
  • Hyva and Luma theme detection so each Panth module loads the right template automatically.
  • An admin notification system that fetches Panth release notices and shows them inside the admin panel.
  • A module registry that lists every installed Panth extension on an overview page.
  • A grid data-provider fix that patches a well-known Magento bug in developer mode.

Which themes are supported? Both Hyva (Alpine.js) and Luma. Theme detection is handled for you.

What does it need? Magento 2.4.4 to 2.4.8 and PHP 8.1 to 8.4. No other dependencies.

Is it free? Yes. Panth Core is completely free and will remain free forever.

🚀 Need Custom Magento 2 Development?

Get a free quote for your project in 24 hours for custom modules, Hyva themes, performance work, M1 to M2 migrations, and Adobe Commerce Cloud.

Get a Free Quote

🏆 Kishan Savaliya

Top Rated Plus on Upwork

Hire on Upwork

100% Job Success • 10+ Years Magento Experience Adobe Certified • Hyva Specialist

🏢 Panth Infotech Agency

Magento Development Team

Visit Agency

Custom Modules • Theme Design • Migrations Performance • SEO • Adobe Commerce Cloud

Visit our website: kishansavaliya.com  |  Get a quote: kishansavaliya.com/get-quote

Table of Contents

Who Is It For

  • Anyone installing a Panth Infotech extension. Composer pulls Core in automatically as a required dependency. You do not need to think about it.
  • Merchants running multiple Panth modules who want a clean admin sidebar instead of one top-level entry per extension.
  • Developers building on top of Panth modules who need a reliable Hyva/Luma detector or shared config helpers.
  • Stores on both Hyva and Luma where the active theme changes per store view. Core detects the right theme at request time so every Panth module serves the correct template.

Key Features

Shared Admin Foundation

  • Unified admin sidebar entry called "Panth Infotech". Every Panth extension adds its items under this one parent, so the sidebar stays clean regardless of how many extensions you install.
  • Centralized configuration section at Stores > Configuration > Panth Extensions. All Panth module settings appear under this one tab.
  • Core Settings with a master enable toggle, debug mode, and a caching toggle that are used across the whole suite.

Hyva and Luma Theme Detection

  • Panth\Core\Helper\Theme checks three signals (module presence, theme path, parent theme chain) to reliably detect whether the active storefront is Hyva or Luma.
  • Handles edge cases like Hyva child themes, Luma child themes, and mixed installations where the Hyva module exists but a Luma theme is active.
  • Result is cached per request to avoid repeated database lookups.
  • Panth\Core\ViewModel\ThemeConfig injects theme tokens into frontend templates through layout XML.

Admin Notification System

  • Fetches release notices from the Panth publisher feed and stores them in the panth_core_notification table.
  • Per-admin display state tracked in the panth_core_notification_display table, so each admin user sees a popup only a configured number of times before it stops appearing.
  • Popup and banner modes for richer notification formats with images, CTAs, and body HTML.
  • Click reporter to track when admins follow notification links, used for deciding which notices are useful.

Module Registry

  • panth_modules.xml lists every installed Panth extension. Each module contributes its own entry through DI configuration.
  • Admin overview page under Panth Infotech shows all registered modules, their versions, and links to their settings.

Developer Utilities

  • Grid data-provider fix patches the well-known Magento bug where SearchResult virtual types return null from getCustomAttributes() in developer mode and crash admin grids.
  • Panth\Core\Api\ThemeBuildExecutorInterface is an optional contract for triggering theme rebuilds from admin. The default no-op implementation returns a friendly "module not installed" message when Panth_ThemeCustomizer is absent.
  • Upload extension policy via Panth\Core\Security\UploadExtensionPolicy enforces a hard deny-list (php, phtml, phar, sh, and other executable types) as a second gate on every Panth upload controller.
  • Cron jobs for fetching notifications, sending the heartbeat, and collecting weekly usage data.

Security and Quality

  • MEQP compliant with zero severity-10 violations.
  • No third-party library dependencies - uses only Magento framework classes.
  • Constructor DI only throughout the codebase.
  • Translation ready using Magento's __() function for all user-facing strings.

Compatibility

Requirement Versions Supported
Magento Open Source 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce Cloud 2.4.4 to 2.4.8
PHP 8.1.x, 8.2.x, 8.3.x, 8.4.x
Hyva Theme 1.0+ (optional)
Luma Theme Native support
Other Dependencies None

Installation

Composer Installation (Recommended)

composer require mage2kishan/module-core
bin/magento module:enable Panth_Core
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush

Manual Installation via ZIP

  1. Download the latest release from Packagist or from the product page.
  2. Extract the contents to app/code/Panth/Core/ in your Magento installation.
  3. Run the commands above starting from bin/magento module:enable.

Verify Installation

bin/magento module:status Panth_Core
# Expected: Module is enabled

After install, open:

Admin -> Stores -> Configuration -> Panth Extensions -> Core Settings

Configuration

Go to Stores > Configuration > Panth Extensions > Core Settings.

Setting Group Default Description
Enable Panth Core General Configuration Yes Master toggle. Disabling this bypasses all Panth Core hooks across the suite.
Debug Mode General Configuration No Enables verbose logging for Panth Core operations. Turn off in production.
Enable Caching General Configuration Yes Caches theme detection and module registry lookups for better performance.
Child Theme Validation Child Theme Validation (display) Read-only panel showing the current theme status and validation checks for child theme setup.
Child Theme Setup Guide Child Theme Setup Guide (display) Step-by-step instructions for creating a child theme of Panth/Infotech.
Share Usage Data Usage Analytics No When enabled, shares your store URL, Magento version, PHP version, and list of active Panth modules with Panth Infotech. No customer data, orders, or personal information is collected.

How It Works

  1. When any Panth extension is installed, Composer also installs Core as a required dependency.
  2. Core registers the Panth Infotech admin sidebar entry and the Panth Extensions configuration tab, so all other modules have a home to attach their menu items and settings sections.
  3. On each frontend request, Panth\Core\Helper\Theme checks whether the active store view is running Hyva or Luma and caches the result. Panth modules call this helper to decide which template to render.
  4. A cron job runs periodically to fetch the Panth notification feed and store any new notices in panth_core_notification. On admin login, relevant popups are shown based on the per-admin state tracked in panth_core_notification_display.
  5. Each Panth extension registers itself in panth_modules.xml through DI. The module registry reads this file to build the admin overview page.
  6. The grid data-provider plugin runs silently to prevent null-pointer crashes in admin grids when Magento is in developer mode.

FAQ

Do I have to pay for Panth Core?

No. Panth Core is completely free and will remain free. It is the foundation that other Panth extensions require. Composer installs it automatically when you install any paid Panth extension.

Can I use Panth Core on its own without other Panth extensions?

Technically yes, but there is no practical reason to. Core only provides admin scaffolding and shared utilities. It has no standalone storefront features.

Will Panth Core slow down my store?

No. Core has no frontend output of its own. Theme detection and module registry lookups are cached per request, so the overhead is minimal.

Does Panth Core conflict with other extensions?

No. Core only touches its own Panth\Core namespace, one admin sidebar entry, and one configuration tab. It does not modify any Magento core files or override third-party extension code.

What tables does Panth Core create?

Two tables. panth_core_notification stores notifications fetched from the Panth publisher feed. panth_core_notification_display tracks how many times each admin user has seen each notification so popups can stop appearing after a set number of views.

Can I uninstall Panth Core?

Only after removing every other Panth extension first. Composer will block the removal otherwise. Once all dependents are gone, run composer remove mage2kishan/module-core && bin/magento setup:upgrade.

Is the source code available?

Yes. The full source is on GitHub at github.com/mage2sk/module-core.

Does it work with multi-store setups?

Yes. All settings respect Magento's standard scope hierarchy (default, website, store view). Theme detection runs per store view, so Hyva and Luma stores can coexist in the same Magento installation.

Does Panth Core support translation?

Yes. All user-facing strings use Magento's __() function, so a language pack or theme translation file can override them.

Support

Channel Contact
Product Page kishansavaliya.com/magento-2-core.html
Email kishansavaliyakb@gmail.com
Website kishansavaliya.com
WhatsApp +91 84012 70422
GitHub Issues github.com/mage2sk/module-core/issues
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech

Response time: 1-2 business days.

💼 Need Custom Magento Development?

Looking for custom Magento module development, Hyva theme work, store migrations, or performance tuning? Get a free quote in 24 hours:

Get a Free Quote

Hire on Upwork    Visit Agency    View Product Page

About Panth Infotech

Built and maintained by Kishan Savaliya (kishansavaliya.com), a Top Rated Plus Magento developer on Upwork with 10+ years of eCommerce experience.

Panth Infotech is a Magento 2 development agency that builds high quality, security focused extensions and themes for both Hyva and Luma storefronts. The extension suite covers SEO, performance, checkout, product presentation, customer engagement, and store management, with each module built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.

Browse the full extension catalog on our Magento extensions page or on Packagist.

Quick Links

Resource Link
🛒 Product Page magento-2-core.html
📦 Packagist mage2kishan/module-core
🐙 GitHub mage2sk/module-core
🌐 Website kishansavaliya.com
💬 Free Quote kishansavaliya.com/get-quote
👨‍💻 Upwork (Top Rated Plus) Hire Kishan Savaliya
🏢 Upwork Agency Panth Infotech
📧 Email kishansavaliyakb@gmail.com
📱 WhatsApp +91 84012 70422

Ready to install the Panth Infotech extension suite?
See Panth Core

SEO Keywords: magento 2 base module, panth core, magento 2 free module, magento 2 required dependency, panth infotech foundation, magento 2 shared library, magento 2 admin foundation, magento 2 hyva luma detection, magento 2 theme detection helper, magento 2 module registry, magento 2 admin notification system, magento 2 grid bug fix, magento 2 SearchResult fix, panth shared library, magento 2.4 base library, magento 2 extension dependency, magento 2 development agency, hire magento developer upwork, top rated plus magento freelancer, kishan savaliya magento, panth infotech magento, magento 2.4.8 module, php 8.4 magento module, hyva theme module, luma theme detection, magento 2 admin menu consolidation, mage2kishan, mage2sk, custom magento development, magento 2 hyva development, magento 2 extension suite, magento 2 upload extension policy, magento 2 child theme validation

统计信息

  • 总下载量: 105
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 63
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-04-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固