# mage-os/module-widgetkit

> Widgetkit of cms widgets for Mage-OS

`composer require mage-os/module-widgetkit`

Canonical URL: https://packagento.com/mage-os/module-widgetkit

## At a glance

- **Vendor**: mage-os (https://packagento.com/mage-os.md)
- **Latest version**: 1.4.8 — released 2026-06-08
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/mage-os/module-widgetkit and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require mage-os/module-widgetkit:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Widgetkit of cms widgets for Mage-OS

## README

Kit of CMS Widgets compatible with Hyvä frontend theme.

---

### Overview

The **Widgetkit** module defines a pre-built list of cms widgets with dedicated preview for Magento's pagebuilder.
As far as this module is full compatible with Hyvä, each preview generates Tailwind CSS style when component is loaded on pagebuilder stage, alpine JS bindings are resolved on previews too.

### 🚀 Features

1) Full support for Hyvä frontend using twind js library to compile tailwind classes at component rendering on pagebuilder stage and alpine initialization on block_cms and page_cms edit controllers.

2) Customizable slideshow widget

3) Customizable slider widget

4) Customizable product slider widget

5) Customizable grid widget

5) Customizable product grid widget

### 🔧 Installation

1. Install it into your Mage-OS/Magento 2 project with composer:
    ```
    composer require mage-os/module-widgetkit
    ```

2. Enable module
    ```
    bin/magento module:enable MageOS_Widgetkit
    bin/magento setup:upgrade
    ```

### 🤝 Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.


### 📄 License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

## Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

### 1.4.8
#### Fixed
- A11y fix for slideshow and slider widgets snap-track

### 1.4.7
#### Updated
- Enhance widgets extensibility enabling every child template override through $block->setData() inside phtml 

### 1.4.6 - 2026-04-21
#### Fixed
- PHP 8.4 and 8.5 compatibility: add missing parameter type in ProductWidget::loadProducts, add explicit void return type on Observer::execute, guard against null module path before substr(), add missing @throws PHPDoc on Adminhtml\Grid\Preview::renderMainTemplate

### 1.4.5
#### Fixed
- Fix null dereference on product loading in ProductWidget
- Remove invalid return statement from constructors in Slider/Preview and Slideshow/Preview
- Change readonly private to protected readonly in RegisterModuleForHyvaConfig

### 1.4.4
#### Updated
- Fix dotnav for slider/product-slider widgets on mobile

### 1.4.3
#### Updated
- Add anchor to slider item container if button content is not set

### 1.4.2
#### Fixed
- Fix slideshow min-height management

### 1.4.1
#### Updated
- Add missing frontend controls on widgets parameters 

### 1.4.0
- Update composer JSON making the module installable for Magento Openso

### 1.3.2
#### Updated
- Add the right file type for Tailwind 4 compatibility

### 1.3.1
#### Updated
- Remove css functions from adminhtml/web/css css preview files due to incompatibility with nativa pagebuilder template sacing feature.

### 1.3.0
#### Added
- Grid and Product grid widgets are available!

### 1.2.0
#### Added
- product Slider widget is available!

### 1.1.3
#### Fixed
- Fix dotnav navigation click issue for slider widget

### 1.1.2
#### Fixed
- Fix tailwind compilation for widgetkit missing css tailwind classes

### 1.1.1
#### Updated
- Slider widget minor fixes made

### 1.1.0
#### Added
- Slider widget is available!

### 1.0.0
#### Added
- First Commit, slideshow widget is available!

## Recent Versions

| Version | Released |
|---|---|
| 1.4.8 | 2026-06-08 |
| 1.4.7 | 2026-05-29 |
| 1.4.6 | 2026-05-01 |
| 1.4.5 | 2026-04-16 |
| 1.4.4 | 2026-04-14 |
| 1.4.3 | 2026-04-11 |
| 1.4.2 | 2026-04-10 |
| 1.4.1 | 2026-04-10 |
| 1.4.0 | 2026-03-10 |
| 1.3.2 | 2026-03-09 |

Showing 10 of 18 versions. Full release history on https://packagento.com/mage-os/module-widgetkit.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| hyva-themes/magento2-theme-module | ^1.4 |
| mage-os/module-advanced-widget | ^1.0 |
| mage-os/module-page-builder-widget | ^1.3 |
| magento/module-page-builder | ^2.0 |
| magento/module-widget | * |
| php | ^8.1 |

## Quality

Latest release (1.4.8) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 473 | 194 errors, 279 warnings (ruleset: Magento2), 231 auto-fixable with phpcbf |
| PHPMD | Warning | 2 | 2 rule violations (ExcessiveParameterList:2) |
| Cpd | Warning | 3 | 3 duplicated chunks spanning 177 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 37 | 37 | – | – |
| 2.4.8 | – | 36 | 36 | – |
| 2.4.9 | – | – | 28 | 28 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | N/A | 0 | no resolvable dependency tree to audit: Your requirements could not be resolved to an installable set of packages. Problem 1 |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["mage-os/module-widgetkit"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

mage-os is a Magento 2 vendor on Packagento. See https://packagento.com/mage-os.md for their full catalogue.

