PHPackages                             eg-mohamed/filament-page-builder-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. eg-mohamed/filament-page-builder-plugin

ActiveLibrary[Admin Panels](/categories/admin)

eg-mohamed/filament-page-builder-plugin
=======================================

Page builder plugin for filamentphp admin panel to build pages using blocks.

03PHP

Since Oct 23Pushed 5mo agoCompare

[ Source](https://github.com/EG-Mohamed/filament-page-builder-plugin)[ Packagist](https://packagist.org/packages/eg-mohamed/filament-page-builder-plugin)[ RSS](/packages/eg-mohamed-filament-page-builder-plugin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Page builder plugin
===================

[](#page-builder-plugin)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a57388a4de353be2188db7fd0faaf0a409cc5ae900880975c124616d1857deb8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72656462657272792f706167652d6275696c6465722d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/redberry/page-builder-plugin)[![GitHub Tests Action Status](https://camo.githubusercontent.com/714c50bba7e55bdf882ce74d8f74dbf17663e5ad70ec1d954d2f45698cb8ebbe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f526564626572727950726f64756374732f66696c616d656e742d706167652d6275696c6465722d706c7567696e2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/RedberryProducts/filament-page-builder-plugin/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/418d4a9e3aaee3a44012443a586431a047643e7bdcfeb806e9adceaa5146709f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72656462657272792f706167652d6275696c6465722d706c7567696e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/redberry/page-builder-plugin)

- [Page builder plugin](#page-builder-plugin)
- [Introduction](#introduction)
- [Features](#features)
- [Installation](#installation)
    - [Pre-requisites](#pre-requisites)
- [Usage](#usage)
    - [Command for generating blocks](#command-for-generating-blocks)
    - [Additional configuration options](#additional-configuration-options)
        - [Enable reorders](#enable-reorders)
        - [Previewing in real time with iframe](#previewing-in-real-time-with-iframe)
        - [Formatting page builder data for preview](#formatting-page-builder-data-for-preview)
        - [Formatting block label](#formatting-block-label)
        - [grouping blocks](#grouping-blocks)
        - [Block categories](#block-categories)
        - [Showing thumbnail preview for a block](#showing-thumbnail-preview-for-a-block)
        - [disabling block in select block](#disabling-block-in-select-block)
        - [iframe resizing](#iframe-resizing)
        - [Parameter injection](#parameter-injection)
        - [Global blocks](#global-blocks)
        - [Rendering page builder items on infolist](#rendering-page-builder-items-on-infolist)
        - [Rendering page builder ite previews on fomrms](#rendering-page-builder-ite-previews-on-fomrms)
        - [Customizing actions and button rendering](#customizing-actions-and-button-rendering)
            - [Customizing buttons for actions](#customizing-buttons-for-actions)
- [Credits](#credits)
- [License](#license)

Introduction
============

[](#introduction)

This FilamentPHP plugin is aimed at allowing you to seamlessly integrate page builder functionality into your Filament admin panel, preview changes in real-time via iframe or view files, and manage your content with ease using FilamentPHP form fields.

Features
========

[](#features)

- Predefined form and infolist component which can be fully customized
- Previewing changes in real-time via iframes or view files
- Easily customizable page builder block components
- Ability to use every FilamentPHP field inside component blocks
- Ability to fully customize formatting of page builder blocks
- Predefined table and trait for easily adding page builder functionality to your resources

Installation
============

[](#installation)

Pre-requisites
--------------

[](#pre-requisites)

- PHP 8.1 or higher
- Laravel 10.x or higher
- Filament 3.x

You can install the package via composer:

```
composer require redberry/page-builder-plugin
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="page-builder-plugin-migrations"
php artisan migrate
```

Optionally, you can publish the config file using:

```
php artisan vendor:publish --tag="page-builder-plugin-config"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="page-builder-plugin-views"
```

Usage
=====

[](#usage)

- add trait to the model you want to have page building functionality to

```
