Download the PHP package creode/nova-page-builder without Composer

On this page you can find all versions of the php package creode/nova-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 nova-page-builder

Nova Page Builder

Latest Version on Packagist Total Downloads

Exposes a simple customisable page builder in Laravel Nova, built on top of Flexible Content fields.

Installation

You can install the package via composer:

Optionally, you can publish the views using

Usage

This package is split from a previous module titled nova-pages. That module exposed page builder functionality where new components could be created easily. This module splits the page builder functionality from the page management functionality, allowing you to use the page builder without the page management.

This module heavily utilises the nova-flexible-content package, and as such, you should familiarise yourself with that package before using this one.

Page Builder Field

This module creates a new field type, Creode\NovaPageBuilder\Nova\Fields\PageBuilder. This field type is a wrapper around the Flexible field type, and as such, you can use all of the same methods as you would with the Flexible field type. The only difference is that the PageBuilder field type will automatically register all of the components that you have created.

Excluding Components

If you wish to exclude certain components from being used within the field, you can do so by passing an array of component names to the exclude method on the PageBuilder field type. For example, if you wish to exclude the Banner component, you can do so by adding the following to your Page Nova resource:

Rendering Components

This module exposes a blade file that can be used to render the components on the front-end of your site.

We also include a trait that needs to be added to your model. This trait will allow you to access the content of the page builder field and allow you to pass the components to the blade file. The trait is Creode\NovaPageBuilder\Traits\HasPageBuilderContent. You can use this trait in your model like so:

Once the above has been added to your model you can render the components of the page builder field by calling $page->components and passing this to the view file below:

For example:

Extension

As previously stated, this module will not define any format of page content. However it does contain the infrastructure for defining content blocks with minimal code. To define a new content block you will need to define an extension of the Creode\NovaPageBuilder\Abstracts\PageBlockAbstract class. Your new class should then be instantiated within the boot method of a service provider.

As part of your new class, you must define a "$label" string property. This will be the human readable representation of your new content block. You must define a "$name" string property. This will be how Laravel will reference your content block. You must define a "$view" string property. This should reference a view file containing markup and/or template logic for rendering your block on front-end pages. You must define a "fields" method. This should return an array of Laravel Nova field objects.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of nova-page-builder with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/contracts Version ^10.0 | ^11.0
spatie/laravel-package-tools Version ^1.14.0
whitecube/nova-flexible-content Version ^1.0
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 creode/nova-page-builder contains the following files

Loading the files please wait ....