Gutenberg Form Builder
Wordpress gutenberg form builder. Customizable fields, flexible layout, etc
by Your Name · github.com/yarko-ua/gutenberg-form-builder · website
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/yarko-ua/gutenberg-form-builder/archive/refs/heads/main.zipReadme
Gutenberg Form Builder
Advanced form builder for WordPress Gutenberg with custom fields, validation, and PDF generation.
Installation
For End Users (Plugin Installation)
- Download the complete plugin package (including
vendor/folder) - Upload the plugin files to
/wp-content/plugins/gutenberg-form-builder/ - Activate the plugin through the 'Plugins' screen in WordPress
- The plugin is ready to use immediately
Important: Make sure you download the complete plugin package that includes the vendor/ directory with PHP dependencies.
For Developers
Prerequisites
- PHP 7.4 or higher
- Composer
- Node.js and npm
Development Setup
-
Clone/Download the plugin
cd wp-content/plugins/ # Place gutenberg-form-builder folder here -
Install PHP Dependencies
cd gutenberg-form-builder composer install --no-dev --optimize-autoloader -
Install JavaScript Dependencies
npm install -
Build Assets
npm run build
Development Commands
npm run start- Start development with hot reloadnpm run build- Build production assetsnpm run build:custom- Build custom webpack configurationnpm run start-all- Start both main and custom buildsnpm run build-all- Build all assetscomposer install- Install PHP dependencies
Building for Distribution
To prepare the plugin for distribution:
-
Using the build script (Recommended):
./build-plugin.sh -
Manual process:
# Install PHP dependencies (production only) composer install --no-dev --optimize-autoloader # Install JS dependencies and build npm install npm run build
Important: The final plugin package should include the vendor/ directory with all PHP dependencies.
Dependencies
PHP Dependencies (Composer)
mpdf/mpdf ^8.2- PDF generation library
JavaScript Dependencies (npm)
@wordpress/scripts- WordPress build tools@wordpress/components- WordPress React componentsreact-datepicker- Date picker componentreact-sortable-hoc- Drag and drop functionality
Features
- Gutenberg Integration: Native WordPress block editor support
- Form Builder: Drag-and-drop form creation
- Field Types: Various input types including file uploads, date pickers
- PDF Generation: Automatic PDF creation from form submissions
- Email Integration: Send form data via email with attachments
- Multilingual Support: Translation ready
- Validation: Client and server-side form validation
File Structure
gutenberg-form-builder/
├── build/ # Compiled assets
├── inc/ # PHP includes
│ ├── module/ # Core modules
│ └── Loader.php # Autoloader
├── src/ # Source files
│ └── blocks/ # Block definitions
├── languages/ # Translation files
├── vendor/ # Composer dependencies
├── composer.json # PHP dependencies
├── package.json # JavaScript dependencies
└── index.php # Main plugin file
Troubleshooting
Missing Dependencies Error
If you see an admin notice about missing dependencies, this means the plugin was installed without the required PHP libraries.
Solutions:
- Re-download: Get the complete plugin package that includes the
vendor/folder - For Developers: Run
composer install --no-dev --optimize-autoloaderin the plugin directory - Contact Support: Get help from the plugin provider
The plugin will still work for basic functionality, but PDF generation will be disabled until dependencies are available.
Build Issues
If blocks don't appear or assets aren't loading:
-
Rebuild assets:
npm run build-all -
Check file permissions for the
build/directory
License
GPL v2 or later
Support
For support and bug reports, please contact the plugin administrator.