PHPackages                             angelvilaplana/magewire-widget - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. angelvilaplana/magewire-widget

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

angelvilaplana/magewire-widget
==============================

Enable Magewire integration in widgets

1.0.0(11mo ago)01.1kMITPHP

Since Mar 29Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/angelvilaplana/magewire-widget)[ Packagist](https://packagist.org/packages/angelvilaplana/magewire-widget)[ RSS](/packages/angelvilaplana-magewire-widget/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Magewire Widget
===============

[](#magewire-widget)

Enables adding widgets using the [Magewire library](https://github.com/magewirephp/magewire) without any errors.

Installation
------------

[](#installation)

```
composer require angelvilaplana/magewire-widget
```

Usage
-----

[](#usage)

Create a new widget based on this [https://github.com/magewirephp/magewire/blob/main/docs/Features.md#widgets-dc](tutorial).

**Example**

- *etc/widget.xml*

```

        Magewire counter
        Test Magewire widget

```

- *Block/Widget/Counter.php*

```
namespace Vendor\Module\Block\Widget;

use Vendor\Module\Magewire\Counter as CounterWidget;
use Magento\Framework\App\ObjectManager;
use Magento\Framework\View\Element\Template;
use Magento\Widget\Block\BlockInterface;

class Counter extends Template implements BlockInterface
{
    protected $_template = 'widget/counter.phtml';

    public function __construct(
        Template\Context $context,
        array $data = []
    ) {
        $data['magewire'] = ObjectManager::getInstance()->create(CounterWidget::class);
        parent::__construct($context, $data);
    }
}
```

- *Magewire/Counter.php*

```

    +

```

When you have all the files created, you can add the widget to a CMS page or block. The widget will be rendered correctly.

###  Health Score

29

—

LowBetter than 63% of packages

Maintenance50

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

358d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d9bedc4073ae08c9d877f20de610d0407b8d633493d1a95a33f2641dbee3e3b0?d=identicon)[angelvilaplana](/maintainers/angelvilaplana)

---

Top Contributors

[![angelvilaplana](https://avatars.githubusercontent.com/u/58589726?v=4)](https://github.com/angelvilaplana "angelvilaplana (1 commits)")

### Embed Badge

![Health badge](/badges/angelvilaplana-magewire-widget/health.svg)

```
[![Health](https://phpackages.com/badges/angelvilaplana-magewire-widget/health.svg)](https://phpackages.com/packages/angelvilaplana-magewire-widget)
```

###  Alternatives

[magewirephp/magewire-requirejs

A Magento 2 module which makes Magewire compatible with RequireJS based themes

1422.0k20](/packages/magewirephp-magewire-requirejs)[geniusts/prayer-times

A PHP package to calculate prayer times

1616.7k](/packages/geniusts-prayer-times)[magewirephp/magewire-examples

A Magento 2 module including all sorts of Magewire inspired examples

151.8k](/packages/magewirephp-magewire-examples)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
