WP Manifestindependent plugin directory
manifest / editor / forge-blocks

Forge Blocks

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

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/jahidhasan018/forge-blocks/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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.