https://github.com/hansschouten/phpagebuilder-boilerplate
Boilerplate for quickly spinning up websites using PHPagebuilder.
https://github.com/hansschouten/phpagebuilder-boilerplate
boilerplate page-builder php-starter starter-template
Last synced: about 1 year ago
JSON representation
Boilerplate for quickly spinning up websites using PHPagebuilder.
- Host: GitHub
- URL: https://github.com/hansschouten/phpagebuilder-boilerplate
- Owner: HansSchouten
- Created: 2019-10-28T19:09:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-18T18:42:44.000Z (over 5 years ago)
- Last Synced: 2025-03-27T14:03:44.930Z (about 1 year ago)
- Topics: boilerplate, page-builder, php-starter, starter-template
- Language: PHP
- Homepage: https://www.phpagebuilder.com
- Size: 15.6 KB
- Stars: 40
- Watchers: 2
- Forks: 25
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHPagebuilder boilerplate
> Boilerplate for quickly spinning up websites using [PHPagebuilder](https://github.com/HansSchouten/PHPagebuilder).
This boilerplate defines the project structure for quickly creating a website that can be managed with a drag and drop pagebuilder.
## Installation
To setup your website download the boilerplate and upload it to the webroot directory of your website.
### Install PHPagebuilder with Composer
To install PHPagebuilder via composer, SSH to your webroot directory and run the following command:
```
composer require hansschouten/phpagebuilder
```
Now uncomment line 7 of `index.php`.
### Install PHPagebuilder without Composer
If you don't want to use composer, simply download the latest version of PHPagebuilder [here](https://github.com/HansSchouten/PHPagebuilder) and upload it in a directory called `phpagebuilder` inside your webroot directory.
Now uncomment lines 10 and 11 of `index.php`.
### Add the config file
Copy the `config.example.php` from your version of the [PHPagebuilder project](https://github.com/HansSchouten/PHPagebuilder) and add it as `config.php` to your website's root directory.
### Configure a database
If you use PHPagebuilder without any customizations, it requires a database for storing your pages. Just create a database and run the queries from `config/create-tables.sql` of your version of the [PHPagebuilder project](https://github.com/HansSchouten/PHPagebuilder). Next, add the database credentials to your config file.
### Login
Now you should be able to log in to the admin panel by going to the `/admin` URL of your website using `admin` and `changethispassword` (you can change these in the config file). If you are able to login you can follow the instructions to start building your website as described in the [main project's repository](https://github.com/HansSchouten/PHPagebuilder).
Note: make sure to disable error reporting in `index.php` once your website goes into production!