Download the PHP package clevyr/backpack-page-builder without Composer

On this page you can find all versions of the php package clevyr/backpack-page-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package backpack-page-builder

Backpack Page Builder

Prerequisite

Laravel Backpack must be installed

  1. Laravel 7
  2. PHP 7.4
  3. GD or Imagick for Image Intervention

Table of Contents

Installation

Run composer require clevyr/backpack-page-builder

This will install the Page Builder and the https://github.com/Laravel-Backpack/PermissionManager package

This will install Image Intervention http://image.intervention.io/getting_started/introduction

To install the Page builder run the following command, this will install the Permissions Manager and the Page Builder

Run php artisan pagebuilder:install


Update the config -> backpack -> base.php file

to


Run composer dump-autoload

Seed the permissions

Run php artisan db:seed --class=PageBuilderSeeder


Update resources -> views -> vendor -> backpack -> base -> inc -> sidebar_content.blade.php file with


Update app -> User.php with


Create a super admin

Run php artisan pagebuilder:user

Run with parameters

Page Development

Syncing pages

Navigate to pages -> manage

Click the sync icon in the bottom right, this will load in static pages (Every folder that is not the dynamic folder) and it will reload the page

You also have the option to sync them from the command line with the following command

php artisan pagebuilder:sync

Editing static pages

Navigate to the page management page and click edit on the homepage

Page Settings

Name: Page name, admin functionality only, does not affect the functionality of the page's at all

Title: Page title, also generates the slug as you type

Slug: Slug of the page

View: Page view

Page Content

The page content populates with a list of sections, and their fields which you can edit.


Editing Dynamic pages

See Editing Static Pages for a run down of Page Settings and Page Content

Note - You can only use the Page Layout tab if you are working with a dynamic page

Sections list

A list of dynamic sections will be displayed, you can click them to add them to the Content Section

Content Section

The content section displays the sections that will be available to edit on the page

You will not be able to edit the content until you save the page


Creating pages

Pages are located at resources -> views -> pages each folder is considered as the page, with the contents inside the folder dictating what view / sections are available

Contents

Note - Pages sections will not sync if there is not a .blade file inside the sections directory and a config property inside the config.php


Generating Pages

To generate a new page run the following command php artisan pagebuilder:page page with page being the name of the new page

This will create a folder with the page name with the following structure


Sections

The sections folder holds the .blade files that correspond to the section key in the config.php

Using data inside a section

You have access to the $sections variable which is an anonymous function that returns the field data from the section name and the field title

config.php

The config.php holds the configuration of the page sections. Each section holds a list of backpack crud fields https://backpackforlaravel.com/docs/4.1/crud-fields any field, including custom fields will be available to be used inside the config.

Example config

index.blade.php

The index.blade.php is the view file for the page and it's sections.

Example index.blade.php

Development

Submitting Changes

Please push your changes to a new branch before submitting a PR


Setting up local package development

  1. Within the root of an existing Laravel Backpack project, clone this project to ./packages/clevyr/backpack-page-builder
  2. Add the following to your composer.json

  3. Add clevyr/backpack-page-builder to your list of requires in your composer.json like below:

  4. Run composer require clevyr/backpack-page-builder

All versions of backpack-page-builder with dependencies

PHP Build Version
Package Version
Requires backpack/crud Version ^6.1
backpack/permissionmanager Version ^7.0
intervention/image Version ^2.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package clevyr/backpack-page-builder contains the following files

Loading the files please wait ....