PHPackages                             inc2734/wp-customizer-framework - 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. inc2734/wp-customizer-framework

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

inc2734/wp-customizer-framework
===============================

A library for WordPress Customizer.

11.0.4(1y ago)208.7k↓50%3[4 PRs](https://github.com/inc2734/wp-customizer-framework/pulls)1GPL-2.0-or-laterPHPPHP &gt;=7.4

Since Jun 16Pushed 1y ago2 watchersCompare

[ Source](https://github.com/inc2734/wp-customizer-framework)[ Packagist](https://packagist.org/packages/inc2734/wp-customizer-framework)[ RSS](/packages/inc2734-wp-customizer-framework/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (76)Used By (1)

WP Customizer Framework
=======================

[](#wp-customizer-framework)

[![CI](https://github.com/inc2734/wp-customizer-framework/workflows/CI/badge.svg)](https://github.com/inc2734/wp-customizer-framework/workflows/CI/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/84332992e6958acd0b2d0400c35a741ceaa935afd115166fcfc82b1d9efb9290/68747470733a2f2f706f7365722e707567782e6f72672f696e63323733342f77702d637573746f6d697a65722d6672616d65776f726b2f762f737461626c65)](https://packagist.org/packages/inc2734/wp-customizer-framework)[![License](https://camo.githubusercontent.com/e1c4486a554788932d132b4ea9e9c34931db8bb969a8692b8306c7ab1a4d037f/68747470733a2f2f706f7365722e707567782e6f72672f696e63323733342f77702d637573746f6d697a65722d6672616d65776f726b2f6c6963656e7365)](https://packagist.org/packages/inc2734/wp-customizer-framework)

A Framework of WordPress Customizer API.

Install
-------

[](#install)

In your theme directory.

```
$ composer require inc2734/wp-customizer-framework

```

How to use
----------

[](#how-to-use)

### Initialize

[](#initialize)

```
require_once( get_theme_file_path( '/vendor/autoload.php' ) );

new \Inc2734\WP_Customizer_Framework\Bootstrap(
  'handle' => 'main style sheet handle',
);

```

### Customizer

[](#customizer)

```
use Inc2734\WP_Customizer_Framework\Framework;

Framework::panel( 'panel-id', [
  'title' => 'panel-name',
] );

Framework::section( 'section-id', [
  'title' => 'section-name',
] );

Framework::control( 'type', 'control-id', [
  'label'   => 'Header Color',
  'default' => '#f00',
] );

$panel   = Framework::get_panel( 'panel-id' );
$section = Framework::get_section( 'section-id' );
$control = Framework::get_control( 'control-id' );

$control->join( $section )->join( $panel );
$control->partial( [
	'selector' => '.blogname',
] );

```

### Set styles

[](#set-styles)

```
use Inc2734\WP_Customizer_Framework\Style;

add_action(
  'inc2734_wp_customizer_framework_load_styles',
  function() {
    $accent_color = get_theme_mod( 'accent-color' );

    Style::attach(
      'The handle of enqueued style',
      [
        [
          'selectors'  => [
            '.page-title',
            '.strong',
          ],
          'properties' => [
            "color: {$accent_color}",
            "border-bottom-color: {$accent_color}",
          ],
          'media_query' => '@media (min-width: 768px)', // Optional
        ],
      ]
    );
  }
);

```

#### Using placeholder

[](#using-placeholder)

```
use Inc2734\WP_Customizer_Framework\Style;

add_action(
  'inc2734_wp_customizer_framework_load_styles',
  function() {
    /**
     * Extend "btn-base" placeholder
     *
     * Style::extend( 'btn-base', [ '.btn-a' ] );
     */
    include_once( get_theme_file_path( '/css/btn-a.php' ) );

    /**
     * Extend "btn-base" placeholder
     *
     * Style::extend( 'btn-base', [ '.btn-b' ] );
     */
    include_once( get_theme_file_path( '/css/btn-b.php' ) );

    /**
     * Extend "btn-base" placeholder
     *
     * Style::extend( 'btn-base', [ '.btn-c' ] );
     */
    include_once( get_theme_file_path( '/css/btn-c.php' ) );
  }
);

add_action(
  'inc2734_wp_customizer_framework_after_load_styles',
  function() {
    Style::placeholder(
      'btn-base',
      function( $selectors ) {
        $accent_color = get_theme_mod( 'accent-color' );

        Style::attach(
          'The handle of enqueued style',
          [
            [
              'selectors'  => $selectors,
              'properties' => [ "border-color: {$accent_color}" ],
            ],
          ]
        );
      }
    );
  }
);

```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 99.1% 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 ~37 days

Recently: every ~100 days

Total

70

Last Release

680d ago

Major Versions

6.0.3 → 7.0.02020-08-26

7.1.4 → 8.0.02021-06-15

8.0.0 → 9.0.02021-06-28

9.0.0 → 10.0.02021-07-29

10.1.1 → 11.0.02023-06-01

PHP version history (3 changes)1.0.0PHP &gt;=5.3

1.0.1PHP &gt;=5.6

11.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1094306?v=4)[Takashi Kitajima](/maintainers/inc2734)[@inc2734](https://github.com/inc2734)

---

Top Contributors

[![inc2734](https://avatars.githubusercontent.com/u/1094306?v=4)](https://github.com/inc2734 "inc2734 (111 commits)")[![fumikito](https://avatars.githubusercontent.com/u/84587?v=4)](https://github.com/fumikito "fumikito (1 commits)")

### Embed Badge

![Health badge](/badges/inc2734-wp-customizer-framework/health.svg)

```
[![Health](https://phpackages.com/badges/inc2734-wp-customizer-framework/health.svg)](https://phpackages.com/packages/inc2734-wp-customizer-framework)
```

###  Alternatives

[kodicms/module-loader

1614.9k11](/packages/kodicms-module-loader)

PHPackages © 2026

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