PHPackages                             kaiseki/wp-block-editor - 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. kaiseki/wp-block-editor

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

kaiseki/wp-block-editor
=======================

WordPress block editor (Gutenberg) helpers: block categories, editor and block-type toggles, embed variations

1.0.0(1mo ago)1705MITPHPPHP ^8.2CI passing

Since May 31Pushed 3w ago2 watchersCompare

[ Source](https://github.com/kaisekidev/kaiseki-wp-block-editor)[ Packagist](https://packagist.org/packages/kaiseki/wp-block-editor)[ Docs](https://github.com/kaisekidev/kaiseki-wp-block-editor)[ RSS](/packages/kaiseki-wp-block-editor/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (33)Versions (7)Used By (0)

kaiseki/wp-block-editor
=======================

[](#kaisekiwp-block-editor)

WordPress block editor (Gutenberg) helpers: block categories, editor and block-type toggles, embed variations.

A set of small hook providers that configure the block editor from a single `block_editor` config key. Each feature is a `kaiseki/wp-hook` `HookProviderInterface` wired through `ConfigProvider`, so you enable it by adding its config and registering the provider — no manual `add_filter` plumbing.

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

[](#installation)

```
composer require kaiseki/wp-block-editor
```

Requires PHP 8.2 or newer.

Usage
-----

[](#usage)

Register `ConfigProvider` with your laminas-style config aggregator, then drive the features from the `block_editor` config key:

```
use Kaiseki\WordPress\BlockEditor\DisableBlockEditor\DisableBlockEditor;
use Kaiseki\WordPress\BlockEditor\EnterTitleHere\EnterTitleHereFilter;

return [
    'block_editor' => [
        // Register custom block categories (classes implementing BlockCategoryInterface).
        'add_categories_at_top' => false,
        'categories' => [
            MyBlockCategory::class,
        ],
        // Fall back to the classic editor for specific post types or via callables.
        'disable_block_editor' => [
            'post_types' => ['product'],
            'post_filter' => [],
        ],
        // Enable/disable individual core embed block variations.
        'embed_variations' => [
            'disable' => ['tiktok'],
            'enable' => [],
        ],
        // Override the "Enter title here" placeholder per post type.
        'enter_title_here' => [
            'page' => 'Enter page name',
        ],
    ],
    // Activate the providers you use via kaiseki/wp-hook.
    'hook' => [
        'provider' => [
            DisableBlockEditor::class,
            EnterTitleHereFilter::class,
        ],
    ],
];
```

`ConfigProvider` registers factories for every feature (`BlockCategoriesRegistry`, `UnregisterBlockTypes`, `DisableBlockEditor`, `DisableEmbedVariations`, `EnableEmbedVariations`, `EnterTitleHereFilter`), each reading its slice of the `block_editor` config from the container.

### Custom block categories

[](#custom-block-categories)

Implement `BlockCategoryInterface` and add the class to `block_editor.categories`:

```
use Kaiseki\WordPress\BlockEditor\BlockCategories\BlockCategoryInterface;

final class MyBlockCategory implements BlockCategoryInterface
{
    public function getSlug(): string { return 'my-blocks'; }
    public function getTitle(): string { return 'My Blocks'; }
    public function getIcon(): ?string { return null; }
    public function beforeSlug(): string { return ''; }
    public function afterSlug(): string { return ''; }
}
```

Development
-----------

[](#development)

```
composer install
composer check   # check-deps, cs-check, phpstan
```

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance95

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~1570 days

Total

2

Last Release

33d ago

PHP version history (2 changes)1.0.x-devPHP ^7.4

1.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c3a6b11aea9668c9e9ca0c0f8515ef114d344acb552c695d715d35d5b388ea4?d=identicon)[woda](/maintainers/woda)

---

Top Contributors

[![davidmondok](https://avatars.githubusercontent.com/u/3883758?v=4)](https://github.com/davidmondok "davidmondok (8 commits)")[![wolfgangschaefer](https://avatars.githubusercontent.com/u/26325205?v=4)](https://github.com/wolfgangschaefer "wolfgangschaefer (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kaiseki-wp-block-editor/health.svg)

```
[![Health](https://phpackages.com/badges/kaiseki-wp-block-editor/health.svg)](https://phpackages.com/packages/kaiseki-wp-block-editor)
```

###  Alternatives

[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k455.6M9.6k](/packages/symfony-dependency-injection)[illuminate/contracts

The Illuminate Contracts package.

706130.3M13.3k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31182.0M2.4k](/packages/illuminate-container)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k52](/packages/ecotone-ecotone)[symfony/type-info

Extracts PHP types information.

20069.8M270](/packages/symfony-type-info)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)

PHPackages © 2026

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