hk2/core

HK2 Core module - The foundational base module for all Magento 2 HK2 extensions.

Maintainers

Package info

github.com/basantmandal/magento2-hk2-core-module

Language:Shell

Type:magento2-module

pkg:composer/hk2/core

Transparency log

Statistics

Installs: 16

Dependents: 5

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-07-16 12:59 UTC

This package is auto-updated.

Last update: 2026-07-16 13:24:06 UTC


README

Version License Magento PHP Downloads

Overview

The HK2 Core module is the foundational base module for all Magento 2 HK2 extensions. It establishes standard administrative configurations, reusable backend blocks, and standardized headers for module configuration screens.

๐ŸŽฏ Use Cases

  • Module Base: Required by all other HK2 extensions (AddBootstrap5, CSP, ScrollTop, etc.) to function correctly.
  • Admin Consolidation: Consolidates HK2 module configurations into a single, organized tab in the Magento Admin Panel.

๐Ÿš€ Features

  • โš™๏ธ Registers a centralized "HK2 Extensions" configuration tab.
  • ๐Ÿ“‚ Sets up a main admin menu item under System for HK2.
  • ๐Ÿ”’ Implements a root ACL resource for all HK2 modules.
  • ๐ŸŽจ Provides a reusable ModuleHeader block for consistent branding.

๐Ÿ— Architecture

  • Core Module Components: Base adminhtml system configurations.
  • Design Patterns: Standard Magento UI configuration implementations.

๐Ÿงฉ Magento Components

Blocks

  • HK2\Core\Block\Adminhtml\System\Config\ModuleHeader

Layout XML

  • HK2_Core::system/config/module_header.phtml

๐Ÿ“ฆ Requirements

  • Magento version: 2.4.4 - 2.4.9
  • PHP requirements: 8.1 || 8.2 || 8.3 || 8.4
  • Composer requirements: magento/framework: ^103.0.0

โš™๏ธ Installation

  1. composer require hk2/core
  2. bin/magento module:enable HK2_Core
  3. bin/magento setup:upgrade
  4. bin/magento setup:di:compile
  5. bin/magento cache:flush

๐Ÿ”ง Configuration

This module primarily provides configuration tabs for other modules. No specific configuration is required for the Core module itself.

Usage

This module works silently in the background. Once installed, navigating to Stores > Configuration will display a new "HK2" tab where dependent modules will render their settings.

๐Ÿ—„ Database Changes

Not Applicable

๐Ÿ“‚ Module Structure

Block/
โ”œโ”€โ”€ Adminhtml/
โ”‚   โ””โ”€โ”€ System/
โ”‚       โ””โ”€โ”€ Config/
โ”‚           โ””โ”€โ”€ ModuleHeader.php
etc/
โ”œโ”€โ”€ adminhtml/
โ”‚   โ”œโ”€โ”€ menu.xml
โ”‚   โ””โ”€โ”€ system.xml
โ”œโ”€โ”€ acl.xml
โ””โ”€โ”€ module.xml
view/
โ””โ”€โ”€ adminhtml/
    โ””โ”€โ”€ templates/
        โ””โ”€โ”€ system/
            โ””โ”€โ”€ config/
                โ””โ”€โ”€ module_header.phtml

๐Ÿงช Testing

Not Applicable

๐Ÿ“ˆ Performance Considerations

Not Applicable

๐Ÿ” Security Considerations

  • ACL usage: Defines HK2_Core::root base ACL for administrative access to HK2 configurations.

Compatibility

Reference: docs/compatibility.md

Platform Supported Versions
Magento 2.4.4 - 2.4.9
PHP 8.1, 8.2, 8.3, 8.4

๐Ÿ”„ Upgrade Notes

Not Applicable

๐Ÿ›  Troubleshooting

If HK2 tabs do not appear in the admin panel, ensure that the cache has been flushed and HK2_Core is enabled using bin/magento module:status.

๐Ÿค Contributing

Contributions are welcome! If you'd like to improve the installer:

  • โญ Star this repository (Helps others find it!)
  • ๐Ÿด Fork the project
  • ๐Ÿ› Report bugs
  • ๐Ÿ’ก Suggest new features
  • ๐Ÿค Contribute improvements

Every โญ helps increase the visibility of the project and motivates further development.

โš–๏ธ Disclaimer

The author provides this installation script "as is" without any warranties. Users are responsible for ensuring that running this script complies with their internal security and software requirements.

๐Ÿค Support

For bug reports, feature requests, and general support:

License

This project is licensed under the OSL 3.0 License. See the LICENSE.txt file for details.