A comprehensive WordPress plugin for creating and managing demo sites with automated backup/restore, demo account management, and cloud storage integration.
- Database Backup - Complete SQL export with compression
- Source Code Backup - Selective directory backup (uploads, themes, plugins)
- Smart Exclusions - Exclude inactive plugins/themes, revisions, transients, cache
- Migration Package - Portable backup for site cloning
- Manual Restore - One-click restore with maintenance mode
- Scheduled Auto-Restore - Automatic restore at configurable intervals
- Countdown Timer - Visual countdown display on admin/frontend
- URL Search & Replace - Handle serialized data for site migration
- Account Management - Link WordPress users as demo accounts
- Login Form Integration - Demo account selector on wp-login.php
- Batch Operations - Generate and truncate demo accounts
- Permission Restrictions - Limit demo user capabilities
- Google Drive - OAuth 2.0 integration
- OneDrive - Microsoft authentication
- Auto-sync - Upload backups to cloud automatically
- Telegram Integration - Real-time notifications for backup/restore events
- Custom Page - Configurable maintenance page with pastel design
- Bypass Options - IP whitelist, URL key, Super Admin access
- WordPress 6.0+
- PHP 8.0+
- ZipArchive PHP extension
- MySQL 5.7+ / MariaDB 10.3+
- Download or clone this repository
- Upload to
wp-content/plugins/demo-builder/ - Activate the plugin via WordPress admin
- Navigate to Demo Builder in the admin menu
demo-builder/
├── admin/ # Admin classes and views
├── assets/ # CSS, JS, images
│ ├── css/
│ ├── js/
│ └── lib/ # Third-party libraries
├── extensions/ # Cloud storage extensions
├── includes/ # Core classes
├── languages/ # Translation files
├── heraspec/ # Development specifications
└── demo-builder.php # Main plugin file
- Frontend: Vue.js 3 (Composition API), TailwindCSS, SweetAlert2
- Backend: PHP 8.0+, WordPress Plugin API
- Storage: MySQL/MariaDB, ZipArchive
npm install
npm run build- WordPress Plugin Handbook guidelines
- No inline CSS/JS - use proper enqueuing
- i18n support via data attributes
Development specifications are located in /heraspec/:
project.md- Full project specification (EN)project_vi.md- Vietnamese versionAGENTS.heraspec.md- Agent instructionsspecs/- Individual feature specifications
This project is licensed under the MIT License.
