PHPackages                             nsrosenqvist/cmb2-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. nsrosenqvist/cmb2-widget

AbandonedArchivedWordpress-plugin

nsrosenqvist/cmb2-widget
========================

1.0.1(7y ago)56611MITPHPPHP &gt;=7.0.0

Since Jun 18Pushed 7y ago3 watchersCompare

[ Source](https://github.com/nsrosenqvist/cmb2-widget)[ Packagist](https://packagist.org/packages/nsrosenqvist/cmb2-widget)[ Docs](https://github.com/nsrosenqvist/cmb2-widget)[ RSS](/packages/nsrosenqvist-cmb2-widget/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (1)

CMB2 Widget
===========

[](#cmb2-widget)

*Lets you use CMB2 in widgets*

Extend the abstract widget class.

```
use NSRosenqvist\CMB2\Widgets\CMB2_Widget;

class MyWidget extends CMB2_Widget
{
    protected $fields = [
        // You can set ID both as the key and in the array
        'title' => [
			'name' 			   => __('Title', 'theme'),
			'type'             => 'text',
		],
    ];

    function __construct($id_base, $name, $widget_options = [], $control_options = [])
    {
        parent::__construct(
            // Base ID of widget
            'my_widget'
            // Widget name will appear in UI
            'My Widget',
            // Widget description
            $widget_options,
            // Widget options
            $control_options
        );
    }
}
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

Every ~0 days

Total

2

Last Release

2883d ago

### Community

Maintainers

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

---

Top Contributors

[![nsrosenqvist](https://avatars.githubusercontent.com/u/1303475?v=4)](https://github.com/nsrosenqvist "nsrosenqvist (2 commits)")

### Embed Badge

![Health badge](/badges/nsrosenqvist-cmb2-widget/health.svg)

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

###  Alternatives

[rankmath/seo-by-rank-math

Rank Math is the most powerful way to get BEST WordPress SEO tools added to your website.

1252.0k](/packages/rankmath-seo-by-rank-math)

PHPackages © 2026

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