The folder of a single block contains a view.php or a view.html. The blocks folder contains a sub folder for each block that can be used in the page builder. The name of this folder will be the identifier of the theme, which can be used to select the theme in the theme > active_theme configuration.Ī theme should have the following folder structure: To create a new theme, add a new folder to the configured themes folder. The config.php contains a config key theme in which a themes_folder and active_theme are specified. Next, add the database credentials to your config file. Just create a database and run the queries from config/create-tables.sql. If you use PHPagebuilder out of the box, it requires a database for storing your pages. $builder = new PHPageBuilder\ PHPageBuilder( $config) Ĭonfig.php should contain a copy of config/, filled with your settings. If you are using Composer for managing PHP dependencies, you can simply run:
Integrate into existing project or framework Add code with Composer If you want to quickly start a new project with drag and drop page management functionality, you can download the boilerplate project structure and follow the steps over there.
To install PHPagebuilder you either follow the quick start path, for quickly spinning up a new website, or you integrate it in your own framework or favorite project structure.
Read here how to disable or replace the website manager. You don't want to use the website manager? No worries, it is included for people who want to use PHPagebuilder directly out of the box. Clicking the edit button will open the page builder.
This website manager offers basic functionality to add or remove pages and to edit page settings like page title or URL. PHPagebuilder features a page builder built on GrapesJS.Ī basic website manager is included with a Bootstrap UI. You would like to have advanced functionality (search functionality, views displaying data of remote sources, etc.) easily manageable by your clients.You hate to rely on messy plugins for features you can write in no-time in plain PHP yourself, but still want to have some admin functionality to allow other people to manage the websites you create.Your clients get lost in feature abundant admin panels like Drupal.You want to build a custom website for a client within a few hours.You don't like the limited page editors in CMSs you've tried.You get lost installing, configuring, updating or simply using feature abundant CMS systems like Wordpress, Drupal.You just want to create a basic website that you can easily manage from any device.Whether you are a novice or an experienced web developer, PHPagebuilder can make your life easier if you find yourself in any of the following: This package is made with customization in mind, allowing you to configure, disable or replace any of its modules. It includes an optional website manager with a Bootstrap UI and integrates the most popular open source drag and drop pagebuilder: GrapesJS. The server-side code does not depend on any other libraries and is blazing fast. PHPagebuilder can be used as an ultra lightweight CMS to quickly spin up new websites, or can be integrated into existing projects or your favorite frameworks (such as this version for Laravel). PHPagebuilder is a drag and drop pagebuilder to manage pages in any PHP project.