Build custom blocks for WordPress block editor (Gutenberg) without coding.
Website Documentation WordPress Plugin Pro Version
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
- PHP >= 7.2
- Node.js >= 18.0
- Composer >= 2.0
- Clone the repository
- Install dependencies:
npm install
# Start development with file watcher
npm run dev
# Build for development
npm run build
# Build for production (with zip file)
npm run build:prod
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
We use WordPress's official testing environment powered by Docker and wp-env.
- Install Docker on your machine
- Start the server:
npm run env:start
- Run tests:
# End-to-end tests (Playwright) npm run test:e2e # PHP Unit tests npm run test:unit:php
This project is licensed under the GPL-2.0-or-later License - see the LICENSE file for details.