Download the PHP package ali-awwad/fine-builder without Composer

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

Fine Builder

Fine Builder is a Statamic page builder with visual editing. Pages are built from blocks, and editors work on the page itself in Live Preview.

Requires PHP 8.3+ and Statamic 6.

Features

Page builder

Visual editing in Live Preview

Installation

Then open Tools → Fine Builder in the Control Panel. Super users see it straight away; other roles need the Configure Fine Builder permission (Users → Roles), because the page installs files and changes collection blueprints and templates.

  1. Install builder files. This copies the fieldsets, block templates, icons and the Blocks collection into your site (resources/fieldsets, resources/views/sets, resources/themeicons, content/collections/blocks.yaml). They are yours to restyle and extend. Existing files are kept.
  2. Select collections to use the builder on. Each selected collection gets the builder next to its title and a "Visual editing" helper in the sidebar. Live Preview is set to update without reloading, and the collection switches to the fine_builder template if it still uses default.
  3. Run npm run build so Tailwind generates the block styles. The templates use Tailwind v4 classes and expect @source "../views" in your CSS.

The same from the command line:

Rendering the blocks

Your templates don't know about the builder until one of them includes it. Blocks render wherever a template has:

There are three ways to set that up:

  1. The installed fine_builder template (the default). It renders the blocks, and shows the entry's {{ content }} for entries that don't have blocks yet. When you enable a collection that still uses default, it switches to this template automatically.
  2. Your own template. If the collection keeps its own template (e.g. default.antlers.html or page.antlers.html), add the partial where the blocks should go:

    The Setup page warns when an enabled collection uses a template other than fine_builder, so you can check it includes the partial.

  3. Per entry. An entry's Template field overrides the collection's template. Sites that saved entries with template: default keep that template for those entries, even after the collection switches. Set it to fine_builder on those entries, or add the partial to their template. fine-builder:install --collection=… and the Setup page both list how many entries do this.

The partial works inside any layout, and Live Preview's visual editing works wherever it's included. For content above the blocks for a specific collection, such as an event date, the fine_builder template includes headers/<collection>.antlers.html when it exists.

Adding your own blocks

Blocks live in your site, not in the addon, so you never edit the addon to add or change one. The quickest way to start one:

This creates:

It also adds a testimonials set to resources/fieldsets/fine_builder.yaml. Visual editing picks the new block up straight away: it appears in the add-block list, its toolbar and its settings menu.

These are the default names; see Configuration to change them. By hand, the convention is: fieldset block_<name>, a set <name> in fine_builder.yaml containing only - import: block_<name>, blueprint blocks/<name>.yaml, and template sets/blocks/<name>.antlers.html.

Updating

Installing never overwrites your files, and never changes your fine_builder.yaml. When an addon update ships new blocks, Tools → Fine Builder lists them under New blocks available. Adding them copies their files (existing ones are kept) and adds them to your block list, in the same group they have in the addon.

Making your own templates editable

fbv is short for fine_builder_visual; both names work. The hooks output nothing outside Live Preview:

path is the field's path inside the set, for example items.{index}.title inside a grid loop. Add multiline="true" for textareas. Partials that render nested data take a prefix, as the buttons partial does with fbv_prefix.

Most blocks only need the shared partials, which already contain the hooks:

Configuration

Security

The Custom HTML block outputs its content unescaped by design. Only give trusted roles access to it.

Tools → Fine Builder can overwrite fieldsets and templates and change collection blueprints, so it needs the Configure Fine Builder permission.

Support

Report bugs and ask questions in GitHub issues. Changes in each release are listed in the changelog.


All versions of fine-builder with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
statamic/cms Version ^6.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 ali-awwad/fine-builder contains the following files

Loading the files please wait ...