Skip to content
プロジェクト

概要

Use Lazy Blocks plugin to rapidly build custom blocks without ever leaving your WordPress editor

Web・アプリ開発

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
-1
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

Lazy Blocks - Custom Blocks Builder

WordPress Plugin Version WordPress Plugin Rating WordPress Plugin Downloads License

Build custom blocks for WordPress block editor (Gutenberg) without coding.

Website   Documentation   WordPress Plugin   Pro Version

Overview

Lazy Blocks is a WordPress plugin that helps you create custom blocks for the Gutenberg editor without coding. Key features:

  • 📝 Visual block builder with drag & drop interface
  • 🎛️ Rich set of controls (Text, Image, Gallery, etc.)
  • 🔄 Output blocks with PHP, HTML, or theme templates
  • ⚡ Extensive filters and actions for developers

Use with AI agents

Install the Lazy Blocks skill for Claude Code, Cursor or Codex from your WordPress project:

npx skills add nk-crew/lazy-blocks

On WordPress 6.9+ with Lazy Blocks 5.0+, an agent connected through the WordPress MCP Adapter can also inspect, create, update and render blocks using the plugin's abilities.

Development

Prerequisites

  • PHP >= 8.3
  • Node.js 22 LTS, at least 22.22.2
  • Composer >= 2.0

Getting Started

  1. Clone the repository
  2. Install dependencies:
    npm install
    

Development Commands

# Start development with file watcher
npm run dev

# Build for development
npm run build

# Build for production (with zip file)
npm run build:prod

Code Quality

We use automated tools to ensure code quality. Pre-commit and pre-push hooks are configured for:

  • PHP CodeSniffer
  • ESLint
  • Stylelint
# Linting
npm run lint:php    # Check PHP code
npm run lint:js     # Check JavaScript code
npm run lint:css    # Check CSS code

# Auto-fixing
npm run format:php  # Fix PHP code
npm run format:js   # Fix JavaScript code
npm run format:css  # Fix CSS code

Testing

We use WordPress's official testing environment powered by Docker and wp-env.

  1. Install Docker on your machine
  2. Start the server:
    npm run env:start
    
  3. Run tests:
    # End-to-end tests (Playwright)
    npm run test:e2e
    
    # PHP Unit tests
    npm run test:unit:php
    

License

This project is licensed under the GPL-2.0-or-later License - see the LICENSE file for details.

Changelog notes

See Changelog notes for adding and previewing notes for future releases.

関連プロジェクトを探す

読み込み中…