WP Manifestindependent plugin directory
manifest / editor / forge-blocks

Forge Blocks

Modular Gutenberg landing page builder with dynamic rendering and module toggles.

by Forge · github.com/jahidhasan018/forge-blocks

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/jahidhasan018/forge-blocks/archive/refs/heads/main.zip

1) Architecture Design

  • Modular architecture with DI container (src/Core/Container.php).
  • Module system (ModuleInterface, AbstractModule, ModuleRegistry, ModuleManager, ModuleToggleService).
  • Dynamic block rendering in PHP per module.
  • REST API for module toggles.
  • React admin dashboard for module management.
  • Global style tokens injected as CSS variables.

2) Composer

Uses PSR-4 autoloading and PHP 8+.

3) Bootstrap

Main plugin file initializes Plugin on plugins_loaded.

4) Module System

Each module extends AbstractModule; block registration only occurs when enabled.

5) Fully Implemented Block Example

Hero block includes:

  • block.json
  • React editor with InspectorControls and responsive controls.
  • Dynamic render callback in PHP.
  • Conditional frontend asset loading.

6) Admin Dashboard Structure

React app with:

  • Sidebar navigation.
  • Module toggle controls.
  • Save via REST API.