PHPackages                             narmafzam/cmb2-tabs - 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. narmafzam/cmb2-tabs

ActiveProject

narmafzam/cmb2-tabs
===================

1.0.7(5y ago)21242proprietaryJavaScriptPHP &gt;=5.3

Since Jul 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/narmafzam/cmb2-tabs)[ Packagist](https://packagist.org/packages/narmafzam/cmb2-tabs)[ RSS](/packages/narmafzam-cmb2-tabs/feed)WikiDiscussions master Synced today

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

CMB2 Tabs
=========

[](#cmb2-tabs)

Tabs for [CMB2](https://github.com/WebDevStudios/CMB2).

[![example](example.png)](example.png)

How it works?
-------------

[](#how-it-works)

This plugin adds new parameters to CMB2 boxes:

- vertical\_tabs (bool)
- tabs (array)

Example
-------

[](#example)

```
add_action( 'cmb2_admin_init', 'cmb2_sample_metabox' );
function cmb2_sample_metabox() {

	$prefix = 'your_prefix_demo_';

	$cmb_demo = new_cmb2_box( array(
		'id'            => $prefix . 'metabox',
		'title'         => __( 'Test Metabox', 'cmb2' ),
		'object_types'  => array( 'page', 'post' ), // Post type
		'vertical_tabs' => true, // Set vertical tabs, default false
        'tabs' => array(
            array(
                'id'    => 'tab-1',
                'icon' => 'dashicons-admin-site',
                'title' => 'Tab 1',
                'fields' => array(
                    $prefix . '_field_1',
                    $prefix . '_field_2',
                ),
            ),
            array(
                'id'    => 'tab-2',
                'icon' => 'dashicons-align-left',
                'title' => 'Tab 2',
                'fields' => array(
                    $prefix . '_field_3',
                    $prefix . '_field_4',
                ),
            ),
        )
	) );

	$cmb_demo->add_field( array(
		'name'          => __( 'Test field 1', 'cmb2' ),
		'id'            => $prefix . '_field_1',
		'type'          => 'text',
	) );

	$cmb_demo->add_field( array(
        'name'          => __( 'Test field 2', 'cmb2' ),
        'id'            => $prefix . '_field_2',
        'type'          => 'text',
    ) );

    $cmb_demo->add_field( array(
        'name'          => __( 'Test field 3', 'cmb2' ),
        'id'            => $prefix . '_field_3',
        'type'          => 'text',
    ) );

    $cmb_demo->add_field( array(
        'name'          => __( 'Test field 4', 'cmb2' ),
        'id'            => $prefix . '_field_4',
        'type'          => 'text',
    ) );

}
```

Changelog
---------

[](#changelog)

### 1.0.3

[](#103)

- Added support for dark mode.
- Fixed tab display on widgets screen.

### 1.0.2

[](#102)

- Fixed add group row selector.

### 1.0.1

[](#101)

- Added cmb2-tab-ignore utility.

### 1.0.0

[](#100)

- Initial commit.

###  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 50% 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 ~76 days

Recently: every ~131 days

Total

8

Last Release

1973d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f8feefe1362255b1ecdb1e082140f5011c1da184bf5ee6f1e1720213369d4a8?d=identicon)[narmafzam](/maintainers/narmafzam)

---

Top Contributors

[![Farshadi73](https://avatars.githubusercontent.com/u/30201402?v=4)](https://github.com/Farshadi73 "Farshadi73 (12 commits)")[![rubengc](https://avatars.githubusercontent.com/u/5462480?v=4)](https://github.com/rubengc "rubengc (10 commits)")[![Kaleidosko](https://avatars.githubusercontent.com/u/25795465?v=4)](https://github.com/Kaleidosko "Kaleidosko (2 commits)")

### Embed Badge

![Health badge](/badges/narmafzam-cmb2-tabs/health.svg)

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

PHPackages © 2026

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